Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git commit and push in Netbeans in one command

Tags:

git

netbeans

Is there a way to automatically push changes in git to the remote repository every time I commit to the local one in Netbeans, similar to git add, commit and push commands in one??

like image 538
clum Avatar asked Dec 06 '14 22:12

clum


1 Answers

The bug 211451 keep track of that feature request, which is not yet available in NBetBeans:

  • eGit provides a separate button "Commit and Push".
  • IDEA provides a button labeled "Commit" which acts like a dropdown. When the dropdown is opened then the actions "Commit and push", "Export as patch" are available.

Since NetBeans-Git is using JGit, a post-commit hook wouldn't work (not supported yet).

like image 194
VonC Avatar answered Sep 22 '22 03:09

VonC