如何将存储库拉到我的远程服务器?

时间:2020-10-09 14:59:36

标签: github ssh remote-server

我已经创建了一个Django项目,现在我想将其拉到我的远程服务器上。

我到目前为止所做的:

error: The following untracked working tree files would be overwritten by merge: xxxx Please move or remove them before you merge.

我该怎么办?我猜这是因为文件具有相同的名称,但是没关系。我想将内容从一个拉到另一个。

1 个答案:

答案 0 :(得分:0)

如果要保留它们,请as mentioned here

git add .  (., not *)
git stash
git pull

但是,如果您想要一个干净的工作区:git clean -ndxf(如果可以,请在预览输出列出要删除的内容后删除-n

只有当您拥有干净的工作空间时,您才可以拉动。