我在服务器上初始化了一个裸存储库
git init --bare
然后添加了一个远程
git remote add origin my.hosting.website.com:my-repository.git
然后我想拉。我用
pull -all my repo on server
问题是,当我尝试拉/推一个项目时,它会给出错误信息
fatal: /usr/libexec/git-core/git-pull cannot be used without a working tree
如何解决此问题?
对不起,我刚刚对git感兴趣。