= 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 {{{ #!sh git checkout master }}} 1. Make commit {{{ #!sh git commit -m "Fixed bug" }}} 1. Checkout stable branch {{{ #!sh git checkout stable }}} 1. Apply the last commit from master to this branch {{{ #!sh git format-patch -k --stdout -1 master | git am -3 -k }}} 1. Repeat steps 3-4 as necessary 1. PROFIT!