If you are hardcore Textmate user, you may feel annoyed everytime when you fire the “git commit -a” command. The default editor used by Git is Vim. By applying a small change, you can change the default editor to Textmate instead of Vim.
In Terminal, type:
git config core.editor "mate -w"
Now, you are done. You have changed the default editor in Git to Textmate. Besides that, you can in fact use this command:
git commit -a -m "Hi I am a hardcore Textmate user."
This command will automatically add the new commit message “Hi I am a hardcore Textmate user.” to your new commit instead of firing up an editor to write your commit message.
Happy Gitting!
Leave a Comment