ветка git track с другим именем
У меня есть репо, который отслеживает ветки не по умолчанию. Итак, есть локальная ветка с именем "master", которая должна отслеживать "origin / master-13.07". Я сделал "push -u", и я считаю, что этого должно быть достаточно, ветка отслеживается. Выход изgit 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
Выход изgit 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
Кажется, все в порядке, но когда я просто использую «git push» (как git рекомендует меня выше), это не получается:
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
Да, я знаю, что имя не совпадает, это именно то, что я хочу, и я сказал так, чтобы git нажал "push -u". Почему я не могу просто использовать «толчок»?
C:\work\repo>git --version
git version 1.8.3.msysgit.0
C:\work\repo>git config push.default
simple