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??
Asked
Active
Viewed 3,444 times
7
-
1You almost certainly do not want to automate such a push. Do you never need to amend a commit? – jub0bs Dec 06 '14 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. – clum Dec 07 '14 at 07:25
-
@clum Exactly my problem, situation and worry. – Gustavo Mar 10 '16 at 15:19
-
I need exactly the same thing.. any news on that? – elect Jul 15 '16 at 14:36
-
@elect - I never found a way to do it, but I haven't looked into it since. – clum Jul 17 '16 at 19:19
1 Answers
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).