1
我正在嘗試追蹤github項目的不同分支。 該項目是restful_authentication:跟蹤github上的不同分支
http://github.com/technoweenie/restful-authentication
不過,我真的想克隆是模塊化分支:
http://github.com/technoweenie/restful-authentication/tree/modular
我發現這個指南:
http://github.com/guides/showing-and-tracking-remote-branches
並嘗試了幾個命令:
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
上的正確方法有什麼想法做到這一點?
感謝