Ich habe durch andere Fragen zu ähnlichen Frage durchgesehen.Wie Sie alle Remote-Branch abrufen, "Git fetch --all" funktioniert nicht
Aber sie scheinen zu sagen, die Antwort ist git fetch --all
.
Aber in meinem Fall, es funktioniert nicht.
Dies ist, was ich dafür getan habe.
> git branch
* master
> git branch -r
origin/master
origin/A
> git fetch --all
> git branch
* master #still not updated
> git fetch origin/A
fatal: 'origin/A' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
> git fetch remotes/origin/A
fatal: 'origin/A' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Und ich habe auch versucht, git pull --all
auch, aber das Ergebnis ist das gleiche.
------------------- ------------------- bearbeiten
> git pull --all
Already up-to-date.
> git branch
* master # I think it should show branch A also
> git remote show origin
HEAD branch: master
Remote branches:
A tracked
master tracked
------------------- ------------------- bearbeiten
> git pull origin A
* branch A -> FETCH_HEAD
Already up-to-date.
> git branch
* master # I think it should show barnch A also
1. Es ist 'git fetch Herkunft A' nicht' git find Herkunft/A'. 2. 'git pull' führt einen' fetch' und einen 'merge' durch. 'git pull --all 'sollte alle ** tracked ** Zweige ziehen. – noahnu
Von Ihrem Schnitt sieht es so aus, als würde es funktionieren. Was ist das Problem? – noahnu
@noahnu Ich denke, 'git branch' sollte' branch A' sowie 'master' zeigen. – SangminKim