Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git文件夹和github存储库连接问题_Git_Github_Repository - Fatal编程技术网

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

Git文件夹和github存储库连接问题,git,github,repository,Git,Github,Repository,我的计算机中有一个git文件夹,它与github存储库链接。每当我在那个文件夹中做一些工作时,我都会将它推送到我的github存储库中。现在,我不小心删除了我的git文件夹。如何在github存储库上推送我的工作?如果我理解正确,您需要首先将github存储库拉到本地计算机上,然后才能像往常一样继续。根据您的项目,可能还需要执行其他步骤,如果您有一些依赖项未与github同步,则需要安装它们 git clone https://github.com/user/repo-name 此命令将创建文

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

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

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

此命令将创建文件夹repo name,并将保存的repo从github复制到本地计算机。

使用git clone命令后,我是否可以提交工作并将工作推送到github repo?如果是,那么怎么做?如果你想进行回购,最好的选择是fork。