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.