= Git Tips = [[PageOutline(2,Tips,inline)]] This page is a collection of useful git tips. == Apply a commit to multiple branches == 1. Checkout master branch {{{ git checkout master }}} 1. Make commit {{{ git commit -a -m "Fixed bug" }}} 1. Checkout stable branch {{{ git checkout stable }}} 1. Apply the last commit to master to this branch as well {{{ git format-patch -k --stdout -1 master | git am -3 -k }}} 1. Repeat steps 3-4 as necessary 1. PROFIT!