我在用作媒体中心/备份服务器的 Ubuntu 机器上通过 ssh 设置了一个 git repo。
我采取的步骤是:
cd repos
git init <repoName>
cd <repoName>
git config --bool core.bare true
我已经能够通过 TortoiseGit 从我的台式机和笔记本电脑成功推送和拉取,但是通过 SSH 的 git pull 返回:
fatal: /usr/lib/git-core/gitpull cannot be used without a working tree.
我对终端/ssh 非常陌生,因此将不胜感激任何帮助!