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