When I run git push, my local branch some_branch is pushed to a remote branch some_remote\some_branch.
When I run git remote show some_remote I get:
Local refs configured for 'git push':
[cut]
some_branch pushes to some_branch
I don’t want this. How do I remove this entry?
Perhaps the simplest answer is to rename your local branch some_branch to another name, e.g. with:
The reason for this is that
git pushby default pushes each branch to a branch with a matching name on the remote, if such a branch exists there. If you don’t like this behaviour in general, you have to change the push.default config option. For example, you could do:I wrote a bit more here about the behaviour of
git pushwhere you don’t specify the refspec explicitly.