Ich möchte nur in der Lage sein, zu schreiben:Wie man so `git pull` einrichtet macht was` git pull origin master`?
$ git pull
// does the same as $ git pull origin master
$ git push
// does the same as $ git push origin master
Außer zur Zeit, als ich $ git pull
bekomme ich:
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> master
Mögliches Duplikat [Vereinbaren Sie eine bestehende Git-Zweigs Spur eine entfernte Niederlassung?] (https://stackoverflow.com/questions/520650/make-an-existing-git-branch-track-a-remote-branch) –
Die Antwort ist in der Frage. – axiac
Bitte beachten Sie, dass Sie 15 Sekunden brauchen, um die Ausgabe von 'git pull', die Sie in Ihre Frage eingefügt haben, tatsächlich _read_ zu lesen. Git-Befehle können eine verwirrende Ausgabe erzeugen, aber ich denke, dies ist ein Beispiel für außergewöhnlich klares Feedback. – Chris