Andrey Borzenkov <> writes:

> I renamed branches and noticed that branch name was not changed in
> remote push config. I.e. after
> bor@opensuse:~/src/bootinfoscript> git branch -m github master
> I still have
> [remote "github"]
>         push = github:master
>         url = git://
>         pushurl =
>         fetch = +refs/heads/*:refs/remotes/github/*
> Is it expected behavior or possibly already fixed?

Isn't that line added manually by you?

If the line were written in a canonical and an explicit way
(i.e. "push = refs/heads/github:refs/heads/master"), it might be
nicer if "git branch -m" noticed it and adjusted the LHS of the
refspec, but even that is dubious.

The move of the old github to master by the user may well have been
because the user realized that he added something that is not ready
to be pushed out to the branch, and the next move by the end user
could be to create a github branch anew that points at an earlier
part of the history that is ready to be pushed, while keeping the
invariant "my local github branch is what I will publish".

So, in short, it is expected, and no, I do not think changing it to
"push = master:master" is necessarily an improvement.
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at

Reply via email to