From 7b90b441242910aca721e3cbf19370cdb5e25954 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Wed, 14 Sep 2022 14:40:19 +0800 Subject: More git cheatsheet --- git-workflows | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 git-workflows (limited to 'git-workflows') 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 + +# Conduct the fixup +# After running this command, the fixup commit will automatically show +# after the commit to fix. +git rebase -i --autosquash + +# related config +git config --global rebase.autosquash true -- cgit v1.2.3