Ich habe ein Repo, die Nicht-Standard-Filialen verfolgt. So gibt es einen lokalen Zweig namens "Master", der "Ursprung/Master-13.07" verfolgen sollte. Ich habe "Push -u" getan, und ich glaube, es sollte genug sein, der Zweig wird verfolgt. Ausgabe des git branch -vv
:git verfolgen Zweig mit anderen Namen
C:\work\repo>git branch -vv
stuff 68792df [origin/stuff-13.07] Small bugfix
* master 68792df [origin/master-13.07: ahead 1] Small bugfix
Ausgang des 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
Alles scheint alles in Ordnung, aber wenn ich "git push" nur (wie git empfiehlt mir oben), ist es nicht:
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
Ja, ich weiß, dass der Name nicht übereinstimmt, das ist genau das, was ich will, und ich sagte so zu git von "push -u". Warum kann ich nicht einfach "push" benutzen?
C:\work\repo>git --version
git version 1.8.3.msysgit.0
C:\work\repo>git config push.default
simple
Welche Git-Version verwenden Sie? Hast du die 'push.default' Option gewählt? –
@GuillaumeDarmont Ich habe Informationen zu der Frage hinzugefügt – kan
@GuillaumeDarmont Scheint Lösung ist das 'push.default' in 'upstream' zu ändern. Vielen Dank. – kan