【发布时间】:2016-03-17 10:28:46
【问题描述】:
我尝试在预推送脚本(客户端挂钩)中克隆我的本地 git 存储库。我得到了例外:
fatal: working tree '...' already exists.
我不明白这个异常,因为我显然将 repo 克隆到了不同的目录。
有什么想法吗?
我试过了:
unset GIT_DIR
cd ..
git clone ./TestTest/ /tmp/PrePushTestClone
失败的方式完全相同:(
【问题讨论】:
标签: git clone githooks git-push