Sublime Text git Commit Message Syntax
Syntax Highlighting for SublimeText / Text Mate
With Package Control:
- Run the
Package Control: Install Packagecommand, find and install the Git Commit Message Syntax plugin.
- Restart Sublime Text (if required)
- Clone or download the git repo into your packages folder (in Sublime Text, find Browse Packages… menu item to open this folder)
- Restart Sublime Text editor (if required)
How to make commits with Sublime Text
For the following options, you'll need to use the appropriate command from below:
Note for Windows, you must have
Build 3065 or lated to have command line support
- Mac / Linux:
Preferred Method: Edit
This will allow for more editing options than just the git commit, like editing diffs. This also leaves flexibility as it can be easily overridden, by the
.gitconfig for example.
Add the following to your
On Mac and Linux:
export EDITOR="subl -w"
Alternate Method: Ammend your
You can run the following command to let git update your
git config --global core.editor 'subl -w'
Or add the following line manually to your
[core] editor = 'subl -w'