आप Git को सभी शाखाओं को इस तरह खींचने के लिए कह सकते हैं:
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
git fetch origin
यदि आप देखते हैं .git/config, तो यह कुछ इस तरह दिखाई देगा:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = false
[remote "origin"]
url = https://github.com/owner/repo.git
fetch = +refs/heads/master:refs/remotes/origin/master
[branch "master"]
remote = origin
merge = refs/heads/master
rebase = true
मैंने इसकी तुलना एक पूर्ण क्लोन से की, और देखा कि एकमात्र अंतर "भ्रूण" के तहत था [remote "origin"]।
नोट: मैं Git संस्करण 1.8.2 चला रहा हूं। यदि आप Git का पुराना संस्करण चला रहे हैं तो कॉन्फ़िगरेशन विकल्प बदल सकते हैं। यदि मेरे आदेश काम नहीं करते हैं, तो मैं .git/configआपको यह देखने की सलाह दूंगा कि क्या आप कुछ इसी तरह देख सकते हैं।