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??
-
1You almost certainly do not want to automate such a push. Do you never need to amend a commit?jub0bs– jub0bs2014-12-06 23:42:21 +00:00Commented 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.clum– clum2014-12-07 07:25:01 +00:00Commented Dec 7, 2014 at 7:25
-
@clum Exactly my problem, situation and worry.Gustavo– Gustavo2016-03-10 15:19:09 +00:00Commented Mar 10, 2016 at 15:19
-
I need exactly the same thing.. any news on that?elect– elect2016-07-15 14:36:32 +00:00Commented Jul 15, 2016 at 14:36
-
@elect - I never found a way to do it, but I haven't looked into it since.clum– clum2016-07-17 19:19:52 +00:00Commented Jul 17, 2016 at 19:19
Add a comment
|
1 Answer
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).