通过git连接到网站托管网站,我可以直接通过我的本地电脑推送和拉取

时间:2015-08-14 09:31:32

标签: git-push git-pull git-clone git-remote git-add

我在服务器上初始化了一个裸存储库

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感兴趣。

0 个答案:

没有答案