سؤال
وأنا أحاول أن تتبع فرع مختلف من مشروع جيثب. هذا المشروع هو restful_authentication:
http://github.com/technoweenie/restful-authentication
ولكن ما أريد حقا أن استنساخ هو فرع وحدات:
http://github.com/technoweenie/restful-authentication/tree/modular
ولقد وجدت هذا الدليل:
http://github.com/guides/showing-and-tracking من بعد-فروع
ووحاول عدد قليل من الأوامر مثل:
git checkout --track -b lmod http://github.com/technoweenie/restful-authentication/tree/modular
و
git checkout --track -b lmod git://github.com/technoweenie/restful-authentication.git/modular
ولكن أنا على الحصول على الخطأ التالي:
fatal: git checkout: updating paths is incompatible with switching branches
وأية أفكار حول الطريقة الصحيحة للقيام بذلك؟
والشكر
المحلول
وأنت لا يمكن أن استنساخ فرع، لديك لاستنساخ مستودع كامل:
git clone git://github.com/technoweenie/restful-authentication.git
وبعد ذلك يمكنك استخدام فرع تتبع في مستودع المحلي الخاص بك:
cd restful-authentication
git checkout --track -b lmod origin/modular
ملاحظة أنه بعد الاستنساخ، بوابة شكلت ل"عن بعد" مع اسم "الأصل" للمستودع بعد و"الأصل / وحدات" يحدد فرع "وحدات" من جهاز التحكم عن بعد "الأصل".