Warm tip: This article is reproduced from serverfault.com, please click

其他-Git文件夹和github存储库连接问题

(其他 - Git folder and github repository connection issue)

发布于 2020-11-29 09:20:32

我的计算机上有一个git文件夹,该文件夹与github存储库链接。每当我在该文件夹中做一些工作时,我都会将其推送到我的github存储库中。现在,我不小心删除了我的git文件夹。我如何在GitHub存储库上推送我的工作?

Questioner
AhsanRao
Viewed
0
toHo 2020-11-29 17:24:51

如果我对你的理解正确,则需要先将github存储库拉到本地计算机,然后才能照常继续。根据你的项目,可能需要执行其他步骤,如果你有一些与github不同步的依赖项,则需要安装它们。

git clone https://github.com/user/repo-name

此命令将创建文件夹存储库名称,并将你保存的存储库从github复制到本地计算机。