Changes between Version 65 and Version 66 of HowToGit
- Timestamp:
- 07/31/19 16:02:21 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowToGit
v65 v66 53 53 # merge updates into local master 54 54 git merge upstream/master 55 55 56 # at this point we have reached: 56 57 # (HEAD -> master, upstream/master) 57 58 58 59 ### b) updating releasebranch_7_6 59 # merge updates into local master 60 # switch to branch 61 # only once 62 git checkout -b releasebranch_7_6 origin/releasebranch_7_6 63 # next time, git checkout releasebranch_7_6 64 65 # merge updates into local branch 60 66 git merge upstream/releasebranch_7_6 67 61 68 # at this point we have reached: 62 69 # (HEAD -> releasebranch_7_6, upstream/releasebranch_7_6) … … 146 153 git push origin 147 154 }}} 155 148 156 == Switching between branches == 149 157 … … 197 205 git branch -a 198 206 }}} 207 199 208 == Backporting to release branches == 200 209 … … 209 218 }}} 210 219 211 212 220 === Backporting of a single commit === 213 221 … … 218 226 # update master to fetch the commit to be backported 219 227 git fetch --all --prune 228 229 # ??? With git log, identify the sha1sum of the commit you want to backport (example: backport into releasebranch_7_6) 230 git log 220 231 221 232 # Note: only needed if you have your fork as "origin" (see above) 222 233 # update local repo 223 234 ## NO git pull origin releasebranch_7_6 --rebase 224 # merge updates into local master 235 236 # switch to branch 237 git checkout releasebranch_7_6 238 239 # merge updates into local releasebranch_7_6 225 240 git merge upstream/releasebranch_7_6 241 226 242 # at this point we have reached: 227 243 # (HEAD -> master, upstream/releasebranch_7_6, releasebranch_7_6) … … 230 246 git push origin releasebranch_7_6 231 247 232 # ??? With git log, identify the sha1sum of the commit you want to backport (example: backport into releasebranch_7_6)233 git log234 235 # switch to branch236 git checkout releasebranch_7_6237 238 248 # now backport the commit (edit conflicts if needed) 239 249 git cherry-pick the_sha1_sum