Last active
October 8, 2021 19:24
-
-
Save jakub-frajt/12287df0982534b2b4d35b34770fb49a to your computer and use it in GitHub Desktop.
Sublime Merge custom commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"caption": "Fixup", | |
"command": "git", | |
"args": {"argv": ["commit", "--fixup", "HEAD"]} | |
}, | |
{ | |
"caption": "Stage All", | |
"command": "git", | |
"args": {"argv": ["add", "."]} | |
}, | |
{ | |
"caption": "Rebase and autosquash", | |
"command": "git", | |
"args": {"argv": ["rebase", "-i", "--autosquash", "master"]} | |
}, | |
{ | |
"caption": "Amend previous commit", | |
"command": "git", | |
"args": {"argv": ["commit", "--reuse-message=HEAD", "--amend"]} | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing!
Just two notes:
~/.config/sublime-merge/Packages/User
(on Linux; usePreferences
→Browse Packages…
to open thePackages
folder, then openUser
folder). Also make sure that the file name is
Default.sublime-commands`."args": {"argv": ["add", "."]}
can re replaced with ``"args": {"argv": ["add", "-all"]}`.