...
$ git checkout master
- $ git pull upstream master
- Check out the PR (example #327). This will be in
detached-HEAD
state. (Note: You may need to edit the.git/config
file to add thefetch
lines below)
$ git checkout github/pr/327
...
- Create a branch for the PR
- $ git checkout -b pr327
...
- Apply the changes and sign off. This could be through a
commit --amend
,rebase
, etc.
$ git commit --amend -s
- Edit the commit file to contain "This closes #327. "
$ git log
- Copy commit id of last commit
...
- Switch back to the master branch
$ git checkout master
...
- Merge the changes. You can use
cherry-pick
,merge
, etc.
$ git cherry-pick <commit id>
...
- (Optional) Ensure the commit was applied successfully
$ git log
- Push to the Apache repository (master branch)
$ git push apache master
...
- Switch to the support branch
$ git checkout -t upstream/0.x
...
- (Optional) Check the status of the branch
$ git log
- Apply the changes from the PR branch
$ git cherry-pick <commit id>
...
- Push to the Apache repository (support branch)
$ git push apache 0.x
Anchor | ||||
---|---|---|---|---|
|
...