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

时间:2013-11-09 06:16:16

标签: git github

我正在尝试将我的github分叉存储库与原始存储库同步。我按照github's page上的说明操作了。但是当我尝试将我自己的主分支与上游分开时,它说:

$ 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

当我git commitnothing to commit (working directory clean)时,就是这种情况。

我错过了什么?

1 个答案:

答案 0 :(得分:1)