带有绝对路径的git pull分支
|
我一直在使用以下命令进行结帐:
git --git-dir=C:/home/www/project/.git --work-tree=C:/home/www/project/ checkout branch
我正在尝试为pull复制相同的行为:
git --git-dir=C:/home/www/project/.git --work-tree=C:/home/www/project/ pull origin branch
失败并显示以下错误:
fatal: C:\\Program Files (x86)\\Git/libexec/git-core/git-pull cannot be used without a working tree.
怎么了?为什么不起作用?请帮忙!
没有找到相关结果
已邀请:
1 个回复
糖固傻染