aboutsummaryrefslogtreecommitdiff
path: root/git.cheat
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-10-14 22:03:31 +0800
committerGuangxiong Lin <[email protected]>2023-10-14 22:04:18 +0800
commitfe697a2045e058f6eee7a100a03e7e212bafbdef (patch)
tree41f0f10e8a0b631ea6c3dde3e8bbcfb07b1ce026 /git.cheat
parent8f414ea2d8b2fb7a588402a469d4b3b9d0e17014 (diff)
downloadnavi-cheats-fe697a2045e058f6eee7a100a03e7e212bafbdef.tar.gz
navi-cheats-fe697a2045e058f6eee7a100a03e7e212bafbdef.tar.bz2
navi-cheats-fe697a2045e058f6eee7a100a03e7e212bafbdef.zip
Add git fixup
Diffstat (limited to 'git.cheat')
-rw-r--r--git.cheat6
1 files changed, 6 insertions, 0 deletions
diff --git a/git.cheat b/git.cheat
new file mode 100644
index 0000000..82e27a7
--- /dev/null
+++ b/git.cheat
@@ -0,0 +1,6 @@
+% git
+
+# Fixup commit
+git commit --fixup <commit_id>
+
+$ commit_id: git log --pretty=reference --- --column 1 --delimiter '\s'