Changes between Version 1 and Version 2 of GitTips
- Timestamp:
- 02/23/2010 02:43:56 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GitTips
v1 v2 1 1 = Git Tips = 2 2 3 [[PageOutline(2, ,inline)]]3 [[PageOutline(2,Tips,inline)]] 4 4 5 5 This page is a collection of useful git tips. 6 7 == Apply a commit to multiple branches == 8 9 1. Checkout master branch 10 {{{ 11 git checkout master 12 }}} 13 1. Make commit 14 {{{ 15 git commit -a -m "Fixed bug" 16 }}} 17 1. Checkout stable branch 18 {{{ 19 git checkout stable 20 }}} 21 1. Apply the last commit to master to this branch as well 22 {{{ 23 git format-patch -k --stdout -1 master | git am -3 -k 24 }}} 25 1. Repeat steps 3-4 as necessary 26 1. PROFIT!