aboutsummaryrefslogtreecommitdiff
path: root/git-workflows
diff options
context:
space:
mode:
Diffstat (limited to 'git-workflows')
-rw-r--r--git-workflows10
1 files changed, 10 insertions, 0 deletions
diff --git a/git-workflows b/git-workflows
new file mode 100644
index 0000000..577833b
--- /dev/null
+++ b/git-workflows
@@ -0,0 +1,10 @@
+# Create a fixup commit
+git commit --fixup <commit hash>
+
+# Conduct the fixup
+# After running this command, the fixup commit will automatically show
+# after the commit to fix.
+git rebase -i --autosquash <commit hash>
+
+# related config
+git config --global rebase.autosquash true