Changes between Version 8 and Version 9 of MergerTips


Ignore:
Timestamp:
Oct 27, 2016, 6:49:53 AM (7 years ago)
Author:
Tim Graham
Comment:

Clarified that backports should use the full hash.

Legend:

Unmodified
Added
Removed
Modified
  • MergerTips

    v8 v9  
    55== Automating Backports ==
    66
    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 XXXXXXXX from master.".
     7Backporting 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.".
    88
    99Put 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`.
    1010
    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`.
     11After 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`.
    1212{{{
    1313#!/bin/bash
Back to Top