में दिखाई नहीं दे रही है, मैं रिमोट बिटबकेट रेपो को दबा रहा हूं और हाल ही में एक सहयोगी ने उसी रिपो में बनाई गई एक नई शाखा को धक्का दिया है।रिमोट शाखा "गिट शाखा -आर"
मैं अपलोड किए गए परिवर्तनों को लाने की कोशिश कर रहा हूं।
$ git branch -a
* master
localbranch1
localbranch2
remotes/origin/master
$ Git शाखा -r bitbucket के लिए
मूल/मास्टर
वेब ui में मैं शाखा उनके द्वारा की गई देख सकते हैं। किसी भी मदद/सलाह/दिशा की सराहना की जाएगी। धन्यवाद।
आपको जो भी भविष्य जानकारी चाहिए उसे अभी पूछें।
संपादित करें 1
$ git fetch bitbucket
Password for 'https://[email protected]':
From https://bitbucket.org/user/repo
* branch HEAD -> FETCH_HEAD
शाखा वह बनाया new_branch_b कहा जाता है मैं देखने की उम्मीद की जानी चाहिए:
$ git branch -r
origin/master
origin/new_branch_b
संपादित 2
$ git remote update
Fetching bitbucket
Password for 'https://[email protected]':
From https://bitbucket.org/user/repo
* branch HEAD -> FETCH_HEAD
$ git branch -r
origin/master
संपादित 3
[remote "bitbucket"]
url = https://[email protected]/user/repo.git
मैं मूल के बजाय दूरस्थ bitbucket बुलाया
संपादित 4
मैं (कम से कम है कि मैं क्या याद है, मैं इसे थोड़ी देर पहले की स्थापना की है) कान के जवाब के अनुसार बिटबकेट रिमोट कॉन्फ़िगरेशन को अपडेट किया गया।
$ Git config -e
[remote "bitbucket"]
url = https://[email protected]/user/repo.git
fetch = +refs/heads/*:refs/remotes/bitbucket/*
ज्यादातर लोगों के लिए यह मूल
[remote "origin"]
url = https://[email protected]/user/repo.git
fetch = +refs/heads/*:refs/remotes/origin/*
बाद में
$ git remote update
Fetching bitbucket
Password for 'https://[email protected]':
remote: Counting objects: 48, done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 35 (delta 21), reused 0 (delta 0)
Unpacking objects: 100% (35/35), done.
From https://bitbucket.org/user/repo
* [new branch] branch_name1 -> origin/branch_name1
* [new branch] branch_name2 -> origin/branch_name2
बुलाया जाएगा .... और इतने पर ।
मुझे लगता है कि git fetch origin
भी के लिए git remote update
हर किसी के लिए धन्यवाद जो मुझे इस समस्या के साथ मदद की काम करेगा। निर्दिष्ट भी
$ git remote update
$ git branch -r
'गिट fetch उत्पत्ति' की तरह काम करता है और फिर से प्रयास करें –
आपकी प्रतिक्रिया के लिए हाय धन्यवाद। मैंने पहले ही कोशिश की है, मैंने अपना प्रश्न अपडेट कर लिया है। क्या रिपो को धक्का दिया जा सकता है इसके साथ कुछ भी करना है? – feargal
क्या आप '.git/config' फ़ाइल के '[दूरस्थ" मूल "]' अनुभाग को दिखा सकते हैं? – kan