Although we can change the last commit message directly in one command (git commit --amend -m "New message"), configuring the git editor is useful for other commands like interactive rebase (git rebase -i).
Moreover I think the --local flag is the default value, so it's not necessary: git config core.editor "code -w".
Useful and clear article! 👍
Although we can change the last commit message directly in one command (
git commit --amend -m "New message"
), configuring the git editor is useful for other commands like interactive rebase (git rebase -i
).Moreover I think the
--local
flag is the default value, so it's not necessary:git config core.editor "code -w"
.Nice addition! I always use
-m "Message"
. But for interacative rebase is a pain to use vim, always need to check a cheatsheet to use it!Thanks for this article, will set Code as default editor