我正在尝试跟踪 github 项目的不同分支。该项目是restful_authentication:
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
关于正确方法的任何想法?
谢谢