स्पष्ट करने के लिए:
git clone https://github.com/user1/project.wiki.git
git remote add my-fork https://github.com/user2/project.wiki.git
git push my-fork master
सिंक में विकिज़ रखने के लिए: यह करने के लिए एक वैकल्पिक हल स्थानीय स्तर पर GitHub विकी क्लोन करने के लिए फिर एक अलग भंडार, या एक अलग भंडार का विकी, जैसे में धक्का है एसएसएच का उपयोग करते समय सभी कदम। :
बनाम /
जब SSH का उपयोग करने का उपयोग करने के लिए
git clone [email protected]:User1/Repo1.wiki.git
cd Repo1.wiki
# Now enable Wiki pages in Repo2
git remote add my-fork [email protected]:User2/Repo2.wiki.git
वेतन ध्यान। अगर यहां कुछ गलत हो जाता है, तो आप इस आदेश को दोहराना नहीं कर सकते हैं, इसलिए आपको यूआरएल मैन्युअल रूप से बदलना होगा। जांच करने के लिए यह क्या है, उपयोग करने के लिए इशारा कर रही है:
git push my-fork -f --no-tags
कहाँ:
git config --local remote.my-fork.url [email protected]:User2/Repo2.wiki.git
अब आप के साथ जारी रख सकते हैं:
git config --local -l
# For example, this is wrong:
# [email protected]/User2/Repo2.wiki.git
अगर यह गलत है, तो साथ सही URL सेट -f
सभी refs
को ओवरराइट करने के लिए --force
के लिए शॉर्टेंड है।
संबंधित: * [गिटहब पर विकी पेज को कैसे खींचें?] (Http://stackoverflow.com/questions/10642928) * –