mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-24 14:55:34 +02:00
Updated Useful Git commands (markdown)
@@ -14,3 +14,11 @@
|
|||||||
* switch to branch existing on your local repo
|
* 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`
|
Reference in New Issue
Block a user