DEV Community

loading...

Discussion on: Make VS Code Your Default Git Editor 📝

Collapse
victorcazanave profile image
Victor Cazanave

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".

Collapse
flipjorge profile image
Filipe Jorge

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