मैंने इसी तरह के प्रश्न पर अन्य प्रश्नों को देखा है।सभी रिमोट शाखा कैसे प्राप्त करें, "गिट fetch --all" काम नहीं करता
लेकिन ऐसा लगता है कि उत्तर git fetch --all
है।
लेकिन मेरे मामले में, यह काम नहीं करता है।
यही वह है जो मैंने इसके लिए किया है।
> 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.
और मैंने git pull --all
भी कोशिश की लेकिन परिणाम भी वही है।
------------------- संपादित -------------------
> 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
------------------- संपादित -------------------
> git pull origin A
* branch A -> FETCH_HEAD
Already up-to-date.
> git branch
* master # I think it should show barnch A also
1. यह 'गिट फ़ेच मूल' ए 'गिट फ़ेच मूल/ए' नहीं है। 2. 'गिट पुल' एक 'fetch' और 'विलय' करेगा। 'git pull --all' को सभी ** ट्रैक की गई ** शाखाओं पर एक पुल करना चाहिए। – noahnu
आपके संपादन से, ऐसा लगता है कि यह काम कर रहा है। समस्या क्या है? – noahnu
@noahnu मुझे लगता है कि 'गिट शाखा' को 'शाखा ए' के साथ-साथ 'मास्टर' दिखाना चाहिए। – SangminKim