Updated Useful Git commands (markdown)

Ralf Becker 2016-07-14 13:40:26 +02:00
parent 1b724e3fa2
commit 4353c873de

@ -13,4 +13,12 @@
* switch to branch existing on your local repo
> `git checkout <branch>`
> `git checkout <branch>`
* merge a commit from a different branch (after pulling/fetching!)
> `git cherry-pick <sha1>`
* merge a not pushed commit from a different local repository
> `git --git-dir=../<some_other_repo>/.git format-patch -k -1 --stdout <commit SHA> | git am -3 -k`