summaryrefslogtreecommitdiff
path: root/git/git-cheatsheet.txt
diff options
context:
space:
mode:
Diffstat (limited to 'git/git-cheatsheet.txt')
-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: