How to make automatic git input in IntelliJ 15?

I am currently working on a team that develops on the basis of highways.

We recently moved the project from SVNto GIT, which requires me to push after each commit ( Ctrl+ K, followed by Ctrl+ Shift+ K).

Is there a way to configure IntelliJ to make changes to the start / master after each commit?

+4
source share
2 answers

There is no way to always commit and press automatically. However, there is a shortcut to doing these two operations together manually. If you hover over the Commit button in the Commit Changes dialog box, you will see the Commit and Push option that will trigger the changes after they are committed.

+1
source

if I work on Windows 10 with PhpStorm 2018.1 EAP, then I use this script for AutoHotkey Version 1.1.28. to fix and click with just one shortcut (Ctrl + K).

#IfWinActive,ahk_class SunAwtFrame
  ~^k:: ; thats Ctrl+K
    WinWaitActive,Commit Changes ahk_class SunAwtDialog,,3
    Sleep,300
    send,{CtrlDown}{Altdown}k{Ctrlup}{Altup} ; Ctrl+Alt+K that commits and pushes 
    WinWaitActive,Push Commits ahk_class SunAwtDialog,,3 
    Sleep,200
    send,{Altdown}p{Altup} ; push
    Msgbox,macro for git push in IntelliJ finished `n developed:SL5net, 23.03.2018 17:11`n (%A_LineFile%~%A_LineNumber%) 
  return

installer for autohotkey: https://autohotkey.com/download/

0
source

All Articles