Eclipse git pushes all branches instead of the current

I see this for egit Push to Upstream:

demo

It says: "Insert the current branch ."

When I use it, all branches become pushed, not just current. Is there a way to configure it to push only the current branch?

+8
git eclipse egit
source share
1 answer

Check git configuration for push policy:

git config push.default 

(same as " Eclipse > Window > Preferences > Team > Git > Configuration ")

It should be โ€œsimpleโ€ to be sure to only click on the current branch (upstream thread with the same name)

In Egit, check Team -> Remote -> Configure Push to Upstream
One click of one branch was not supported in 2011 , due to the old JGit Error .
Table How compatible is EGit with Git? " push.default is not mentioned. Here is the current implementation

I usually prefer to use the exact output of the current branch option (instead of pushing up)

push

+3
source share

All Articles