Cannot git clone a folder on a server and then edit and git push?

后端 未结 5 841
温柔的废话
温柔的废话 2021-01-14 23:41

I used Mercurial (Hg) before, and it was ok to do something like at the local PC:

hg clone ssh://peter@hostingcompany.com/~/mysite.com

and

5条回答
  •  我在风中等你
    2021-01-14 23:58

    You should only push to bare repositories (a bare repository has no working copy).

    You have two solutions:

    • pull from your remote repository (then it will ask for solving conflicts)
    • make your remote repository a bare one

    EDIT my guess that the remote repo has local modifications is wrong; don't know why you can't push, but the rest of my post is still valid: you shouldn't push to normal repos.

提交回复
热议问题