5
我试图让Windows上的git钩子自动将位于存储库中的unix符号链接转换为本地机器上的硬链接+连接窗口。我可以怎么做?我们使用基于Windows和Unix的OS组合。在Windows上用于符号链接转换的Git挂钩
Git的命令列表我读到钩子和创建结账后钩:
#!/bin/sh
exec git rm-symlinks
它的工作原理,当我执行git的结帐#branch_with_symlink,但是当我做下一个结账时,GIT中写道:
error: Your local changes to the following files would be overwritten by checkout:
#path_to_symlink
Please, commit your changes or stash them before you can switch branches.
git的状态:
# On branch #branch_with_symlink
nothing to commit, working directory clean
混帐没有预结算挂钩,我不明白,我怎么让这个皈依
我有同样的问题(这并不让我切换分支,即使没有改动同样的错误)。与您的区别在于我手动创建了连接点(在Windows 8中)。看起来git有问题。如果您找到解决方案,请分享。 – Durden81