How can I use keyboard shortcuts to do a git commit and push from IntelliJ IDEA?

前端 未结 3 1880
星月不相逢
星月不相逢 2021-02-07 10:35

I\'m aware that Cmd+K (on macOS) will bring up the Git commit dialog, but I can\'t figure out how to do a commit and then a push without switching to my mo

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-07 11:14

    On Windows, Alt+P acts as an accelerator for the "Commit and Push" commit button option. On Mac it is CmdOptionP.

    Another option is to just do the commit from the commit dialog using the default "commit" option. Then when it is done open the VCS Quick Menu (AltBackquote (`) for windows; Ctrl+V on Mac) and then do the push from there, either by number or narrowing down via inline search for "push"

提交回复
热议问题