4

What I do now in PhpStorm is press:

  1. Ctrl + K to commit
  2. Ctrl + Enter to confirm the Commit dialog
  3. Ctrl + Shift + K to push
  4. Ctrl + Enter to confirm the Push dialog

What I want to accomplish is after I completed the commit massage, PhpStorm will automatically push without prompting me again to confirm.

LazyOne
  • 158,824
  • 45
  • 388
  • 391
Ali Kazemi
  • 606
  • 4
  • 12

2 Answers2

0

You can record a macro and assign a shortcut to it.

artspb
  • 1,127
  • 1
  • 10
  • 19
0

You can use Ctrl+Alt+K as stated in the PhpStorm docs: Commit and push changes to Git repository.

This automatically does your steps 2 and 3. If you want to also remove step 4, you have to uncheck the "For Commit and Push to non-protected branches, preview commits before push" checkbox:

"For Commit and Push to non-protected branches, preview commits before push" checkbox in the PhpStorm Git push dialog

In some cases, Push dialog might not have that checkbox. So the only choice is to to manually press Ctrl+Enter then.

Vasiliy Artamonov
  • 939
  • 2
  • 8
  • 24