Git commit --amend using shortcut
How can I implement git commit --amend feature using single key command? I'm doing this really often and pressing these 3 combinations every time is really annoying
- Cmd+Ctrl+C (my combination to open 'Commit changes' dialog)
- Cmd+Opt+M (check amend checkbox)
- Cmd+Opt+I (perform commit)
I tried to record a macro for all these steps but it only records first step.
Thanks
Please sign in to leave a comment.
No way - as it would require having a separate action for 'amend commit'. Please vote for https://youtrack.jetbrains.com/issue/IDEA-57979
Let's say I'll write a script using bash to perform 'commit --amend' operation. Is there a way to attach hotkey to that script in WebStorm?
You can set up your script as external tool in Preferences | Tools | External Tools and then assign a shortcut to it in Preferences | Keymap | External Tools