Question

I have a little problem with my git.

I fork one project on github, i change and commit some file.

Now i want to do "Pull request" with option rebase.

I do a Pull Request but how can i rebase the pull request ? Did the original author of the repo need to accept my pull request and after i can or he can rebase, or i need to rebase after the pull request ?

Was it helpful?

Solution

The git pull command does not create a GitHub Pull Request!

A GitHub Pull Request is, as the name suggests, a request, for someone else to perform a pull into their repository.

The standard way to create a pull request is to git push your commits up to your fork, and then create a pull request in the GitHub web interface for the repository you want your commit to be pulled into.

However, GitHub also offers a git extension called hub which adds extra subcommands to git to help to do things like this.

To rebase before issuing your pull request, see my answer here for an example way to do it - which may have to be tweaked for your particular circumstances.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top