Sublime Text 3 package to auto-save git messages for commit, rebase, merge, etc.. when the sublime window is closed.
It allows you to close the git message window without having to deal with the "Save File" pop-up, or pressing ⌘S
or ^S
before closing the window.
The package is extremely small, and in only active on commit messages.
Use git
to make a commit, write the commit message using Sublime Text, and close the window without saving.
If you wish to abort the commit, delete the message before closing the window.
If you don't have Sublime Text configured as your default git editor, follow these instructions.
If you also use GitSavvy and want to make the committing work flow homogeneous, enable the option "commit_on_close": true
in GitSavvy.
This allows you to use GitSavvy and git
to commit from the command line, interchangeably without any difference.
Please use Package Control to install. This will ensure that the package will be updated when new versions are available. If you want to install from source so you can modify the source code, you probably know what you are doing so we won’t cover that here.
To install via Package Control, do the following:
-
Within Sublime Text, bring up the Command Palette and type
install
. Among the commands you should seePackage Control: Install Package
. If that command is not highlighted, use the keyboard or mouse to select it. There will be a pause of a few seconds while Package Control fetches the list of available plugins. -
When the package list appears, type
git commit
. Among the entries you should seeGit Message Auto Save
. If that entry is not highlighted, use the keyboard or mouse to select it.