summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-05-17 15:02:21 -0400
committerBoris Kolpackov <boris@codesynthesis.com>2013-05-17 15:02:21 -0400
commit09379a60e88148da28a4c03750b1b3b5aa8b596a (patch)
tree3adf602614d866f892d1eb1559f5879e837904a8
parent101f2261f095470fccd4d775b0dde517e58de287 (diff)
Add note on how to cherry-pick in git
-rw-r--r--git/git-cheatsheet.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/git/git-cheatsheet.txt b/git/git-cheatsheet.txt
index a6be949..248775b 100644
--- a/git/git-cheatsheet.txt
+++ b/git/git-cheatsheet.txt
@@ -16,6 +16,13 @@ Revert uncommited changes
git reset --hard HEAD
+Copy commit from one branch to the other
+
+ # On the source branch
+ git log -1
+ git cout <target-branch>
+ git cherry-pick <commit-id>
+
Setup remote repository
On remote: