git track branch o innej nazwie

Mam repo, które śledzi gałęzie inne niż domyślne. Istnieje więc lokalny oddział o nazwie „master”, który powinien śledzić „origin / master-13.07”. Zrobiłem „push -u” i uważam, że powinno wystarczyć, gałąź jest śledzona. Wyjściegit branch -vv:

C:\work\repo>git branch -vv
  stuff     68792df [origin/stuff-13.07] Small bugfix
* master 68792df [origin/master-13.07: ahead 1] Small bugfix

Wyjściegit status

C:\work\repo>git status
# On branch master
# Your branch is ahead of 'origin/master-13.07' by 1 commit.
#   (use "git push" to publish your local commits)
#
nothing to commit, working directory clean

Wszystko wydaje się w porządku, ale kiedy używam po prostu „git push” (jak git poleca mnie powyżej), to się nie udaje:

C:\work\repo>git push
fatal: The upstream branch of your current branch does not match
the name of your current branch.  To push to the upstream branch
on the remote, use

    git push origin HEAD:master-13.07

To push to the branch of the same name on the remote, use

    git push origin master

Tak, wiem, że nazwa się nie zgadza, to jest dokładnie to, czego chcę, i powiedziałem, żeby wpaść przez „push -u”. Dlaczego nie mogę po prostu użyć „push”?

C:\work\repo>git --version
git version 1.8.3.msysgit.0

C:\work\repo>git config push.default
simple

questionAnswers(2)

yourAnswerToTheQuestion