我有一個小型項目,我想在我們都有權訪問的機器上與其他人分享。我創建了一個本地回購的裸副本git中的「項目描述文件」錯誤?
git clone --bare --no-hardlinks path/to/.git/ repoToShare.git
然後,我將repoToShare.git移至服務器。
我可以用下面的檢查出來:
git clone ssh://[email protected]/opt/gitroot/repoToShare.git/ test
然後我就可以看到本地回購的一切,並針對提交。當我嘗試將更改推回遠程服務器時,出現以下錯誤。
*** Project description file hasn't been set
error: hooks/update exited with error code 1
error: hook declined to update refs/heads/master
任何想法?
確切的問題是,如果掛鉤/更新腳本具有執行權限,它將嘗試並執行,這意味着你的東西會中斷。 :( – 2008-10-14 07:54:50
Git 1.6應該通過忽略預先安裝的鉤子來解決這個問題,直到你重命名它們。所以,當Git 1.6變得普遍時,Windows上更新的Git用戶應該會停止看到這個問題。 – tialaramex 2008-10-14 18:05:13