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

  1. Cmd+Ctrl+C (my combination to open 'Commit changes' dialog)
  2. Cmd+Opt+M (check amend checkbox)
  3. Cmd+Opt+I (perform commit)

I tried to record a macro for all these steps but it only records first step.

Thanks

0
3 comments

No way - as it would require having a separate action for 'amend commit'. Please vote for https://youtrack.jetbrains.com/issue/IDEA-57979

0
Avatar
Permanently deleted user

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?

0

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

0

Please sign in to leave a comment.