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?
A pull request is an event in Git where a contributor asks a maintainer of a Git repository to review code they want to merge into a project. Watch this intermediate Git tutorial video to see how you can fork a Git repository on a remote hosting service, like GitHub.
The git request-pull command can be used to create a "pull request" in native git. When run, Git generates a summary of changes to a project and the Git Repository URL where the code can be pulled from.
The term pull is used to receive data from GitHub. It fetches and merges changes from the remote server to your working directory. The git pull command is used to pull a repository. Pull request is a process for a developer to notify team members that they have completed a feature.
Pull requests are a feature specific to GitHub. They provide a simple, web-based way to submit your work (often called “patches”) to a project. It's called a pull request because you're asking the project to pull changes from your fork.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With