Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.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分叉存储库与上游同步并保留我的更改_Git_Github - Fatal编程技术网

将我的github分叉存储库与上游同步并保留我的更改

将我的github分叉存储库与上游同步并保留我的更改,git,github,Git,Github,我正在尝试将我的github分叉存储库与原始存储库同步。我已经按照上面的说明做了。但当我试图将自己的主分支与上游分支合并时,它说: $ git merge upstream/master error: Your local changes to the following files would be overwritten by merge: ... a list of files ... Please, commit your changes or stash them before

我正在尝试将我的github分叉存储库与原始存储库同步。我已经按照上面的说明做了。但当我试图将自己的主分支与上游分支合并时,它说:

$ git merge upstream/master
error: Your local changes to the following files would be overwritten by merge:
    ... a list of files ...
Please, commit your changes or stash them before you can merge.
Aborting
在这种情况下,当我
gitcommit
时,它会说
无需提交(工作目录清理)


我遗漏了什么?

请检查您的行尾:
请检查您的行尾:

在分支主机上,git状态的输出是什么?
#无需提交(工作目录清理)
在分支主机上,git状态的输出是什么?
#无需提交(工作目录清理)
谢谢,现在我已经完成了git config--global core.autocrlf input,但没有任何更改。我还应该做些什么吗?是吗?我不确定这是行尾还是只是
git重置--hard
但它起了作用。谢谢。谢谢,现在我已经完成了git配置--global core.autocrlf输入,但是没有任何更改。我还应该做些什么吗?是吗?我不确定这是行尾还是只是
git重置--hard
但它起了作用。谢谢