Reputation: 304664
Of course, there's git pull
, but is there a formalized method (i.e. not an ad hoc method such as sending an email) of making a pull request in "pure" git?
Upvotes: 13
Views: 2095
Reputation: 142532
The answer is yes.
The pull request
is based upon git internal feature name : request-pull
git request-pull
Here are the doc for this feature
Based upon this concept the pull request
was created and you can imagine were the name came from....
Other similar methods:
git format-patch
git format-patch master --stdout > XXXX.patch
git format-patch
This command will create patch which can later on can be applied on top of any other commit using the
git apply
commandPrepare each commit with its patch in one file per commit, formatted to resemble UNIX mailbox format. The output of this command is convenient for e-mail submission or for use with git am.
git apply
Reads the supplied diff output (i.e. "a patch") and applies it to files. With the
--index
option the patch is also applied to the index, and with the--cached
option the patch is only applied to the index.Without these options, the command applies the patch only to files, and does not require them to be in a Git repository.
Upvotes: 14