aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-10-19 07:59:18 +0800
committerGuangxiong Lin <[email protected]>2023-10-19 07:59:18 +0800
commit96cdabea475bacda9a24f24ec88427d13f976806 (patch)
tree22969cf81b75a6ea0cea00ed34bf8c10ae835918
parentfe697a2045e058f6eee7a100a03e7e212bafbdef (diff)
downloadnavi-cheats-96cdabea475bacda9a24f24ec88427d13f976806.tar.gz
navi-cheats-96cdabea475bacda9a24f24ec88427d13f976806.tar.bz2
navi-cheats-96cdabea475bacda9a24f24ec88427d13f976806.zip
Add rebase cheatsheet
-rw-r--r--git.cheat3
1 files changed, 3 insertions, 0 deletions
diff --git a/git.cheat b/git.cheat
index 82e27a7..07c288f 100644
--- a/git.cheat
+++ b/git.cheat
@@ -3,4 +3,7 @@
# Fixup commit
git commit --fixup <commit_id>
+# Rebase
+git rebase -i <commit_id>
+
$ commit_id: git log --pretty=reference --- --column 1 --delimiter '\s'