I see this for egit's Push to Upstream:
It says "Push current branch."
When I use it, all branches get pushed instead of only the current one. Is there a way to configure it to push only the current branch?
I see this for egit's Push to Upstream:
It says "Push current branch."
When I use it, all branches get pushed instead of only the current one. Is there a way to configure it to push only the current branch?
Check your git configuration for the push policy:
git config push.default
(same as "Eclipse > Window > Preferences > Team > Git > Configuration
")
It should be "simple" to be sure to only push the current branch (to an upstream branch of the same name)
On Egit, check Team -> Remote -> Configure Push to Upstream
Pushing a single branch wasn't supported in 2011, because of an old JGit bug.
The table "How compatible is EGit with Git?" does not mention push.default
.
Here is the current implementation of
+refs/heads/*:refs/remotes/origin/*
, that owuld explain why it pushes all the branches.I usually prefer to use pushing the current branch option explicitly (instead of push to upstream)