7

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

5
  • 1
    You almost certainly do not want to automate such a push. Do you never need to amend a commit? Commented Dec 6, 2014 at 23:42
  • 3
    @Jubobs I am a one-man team, so if I need to amend it, I can just push again. I basically push to keep it backed up off my computer just in case anything happens to my computer. Commented Dec 7, 2014 at 7:25
  • @clum Exactly my problem, situation and worry. Commented Mar 10, 2016 at 15:19
  • I need exactly the same thing.. any news on that? Commented Jul 15, 2016 at 14:36
  • @elect - I never found a way to do it, but I haven't looked into it since. Commented Jul 17, 2016 at 19:19

1 Answer 1

3

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.