clum
clum

Reputation: 489

Git commit and push in Netbeans in one command

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??

Upvotes: 7

Views: 3632

Answers (1)

VonC
VonC

Reputation: 1326376

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).

Upvotes: 3

Related Questions