Changes between Version 8 and Version 9 of MergerTips
- Timestamp:
- Oct 27, 2016, 6:49:53 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MergerTips
v8 v9 5 5 == Automating Backports == 6 6 7 Backporting can be tedious. The following script makes it a bit easier by performing the `git cherry-pick` and modifying the commit message by prepending the branch name and appending "Backport of XXXXXXXXfrom master.".7 Backporting can be tedious. The following script makes it a bit easier by performing the `git cherry-pick` and modifying the commit message by prepending the branch name and appending "Backport of <full hash> from master.". 8 8 9 9 Put the contents below in `django-src/backport.sh`. Add `backport.sh` to `django-src/.git/info/exclude` to prevent the file from appearing in `git status`. 10 10 11 After committing a change to master. Switch to the branch you wish to backport to and execute `./backport < hash of commit to backport>`. You can double check the commit message looks ok, then `git push`.11 After committing a change to master. Switch to the branch you wish to backport to and execute `./backport <full hash of commit to backport>`. You can double check the commit message looks ok, then `git push`. 12 12 {{{ 13 13 #!/bin/bash