我在一台我用作媒体中心/备份服务器的Ubuntu机器上通过ssh设置了git仓库。
我所采取的步骤如下:
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非常陌生,所以任何帮助都将不胜感激!
git init --bare myrepo
来省略一步。 - Andrew Marshall