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
无法使用GitHub for Windows重新构造我的项目_Git_Github_Github For Windows - Fatal编程技术网

无法使用GitHub for Windows重新构造我的项目

无法使用GitHub for Windows重新构造我的项目,git,github,github-for-windows,Git,Github,Github For Windows,我在GitHub上创建了一个项目,添加了文件,基本上是从我的工作文件复制粘贴内容,然后我意识到我想: 创建文件夹 到处移动文件。 我安装了GitHub for Windows,并通过在远程存储库中按clone在本地克隆了我的远程项目 然后,我创建了一个新文件夹,并从根目录中复制了一个文件 现在,当我选择Local Repositories->open this repo时,我可以看到我的新文件夹和文件,但当我单击sync时,它会显示无法同步此分支 我甚至查看了我的命令行: git init gi

我在GitHub上创建了一个项目,添加了文件,基本上是从我的工作文件复制粘贴内容,然后我意识到我想:

创建文件夹 到处移动文件。 我安装了GitHub for Windows,并通过在远程存储库中按clone在本地克隆了我的远程项目

然后,我创建了一个新文件夹,并从根目录中复制了一个文件

现在,当我选择Local Repositories->open this repo时,我可以看到我的新文件夹和文件,但当我单击sync时,它会显示无法同步此分支

我甚至查看了我的命令行:

git init
git status
On branch master
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)

new file:   folder/new-file
但它坚持要求git重置头部

我甚至试过:

git add -A .
但git状态又在抱怨。

这是什么

使用git重置头。。。拆开

告诉您,如果要取消存储或不提交文件,请使用git reset

下一阶段是提交更改。git提交-m


看一看

好的,我会看一看……似乎这个:离它想要下载和安装的东西很远:!!!
git add -A .