Changes between Version 84 and Version 85 of HowToGit


Ignore:
Timestamp:
Feb 17, 2020, 4:30:10 AM (4 years ago)
Author:
neteler
Comment:

improve backport procedure

Legend:

Unmodified
Added
Removed
Modified
  • HowToGit

    v84 v85  
    232232=== Backporting of a single commit from master to release branch ===
    233233
    234 ... assumming that we are in releasebranch_7_8 branch:
    235 
    236 {{{
     234... we are in releasebranch_7_8 branch:
     235
     236{{{
     237# assumptions:
     238# - the own fork is defined as "origin"
     239# - the remote repo is defined as "upstream"
     240
     241# 1. update the local copy and fork to state of remote repo
    237242git fetch --all --prune
    238 git rebase upstream/releasebranch_7_8
    239 # get hash from GitHub or git log in master
     243git checkout releasebranch_7_8
     244git merge upstream/releasebranch_7_8
     245git push origin releasebranch_7_8
     246
     247
     248# 2. get hash from GitHub or git log in master
     249
     250# 3. cherry-pick the change from master into releasebranch branch
    240251git cherry-pick <hash>
    241252
     
    247258git show
    248259
    249 # push backport to upstream
     260# push backport to releasebranch upstream
    250261git push upstream releasebranch_7_8
    251262}}}