Version 2 (modified by johnnyg, 13 years ago) (diff) |
---|
Git Tips
Tips
This page is a collection of useful git tips.
Apply a commit to multiple branches
- Checkout master branch
git checkout master
- Make commit
git commit -a -m "Fixed bug"
- Checkout stable branch
git checkout stable
- Apply the last commit to master to this branch as well
git format-patch -k --stdout -1 master | git am -3 -k
- Repeat steps 3-4 as necessary
- PROFIT!