Git

試圖複製一個裸 git repo:無法從遠端儲存庫中讀取

  • March 20, 2013

我在我的 Mac OS 10.7 系統上設置了一個 git 使用者。在根目錄下,有​​一個/repositories/test.gitrepo。當試圖用git clone git@server:repositories/test.git它複製它時,我失敗了:

bash: git-upload-pack: command not found
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

我究竟做錯了什麼?

有關詳細資訊,請參閱https://stackoverflow.com/questions/225291/git-upload-pack-command-not-found-how-to-fix-this-correctly,但基本上伺服器沒有git-upload-pack正確的目錄要執行的非登錄 shell。

引用自:https://serverfault.com/questions/489834