Mar*_*ley 8 git merge git-merge
我有一个git问题,我想将一个分支合并到master中,但它拒绝合并,因为它认为我对文件进行了本地更改.执行状态显示没有更改,并且区分文件不会产生任何结果.这是终端输出:
$ git checkout ProductsAndContents
Switched to branch 'ProductsAndContents'
$ git status
# On branch ProductsAndContents
nothing to commit (working directory clean)
$ git checkout master
Switched to branch 'master'
$ git status
# On branch master
nothing to commit (working directory clean)
$ git merge ProductsAndContents
error: Your local changes to the following files would be overwritten by merge:
tests/unit/src/models/BrandTests.js
Please, commit your changes or stash them before you can merge.
Aborting
Run Code Online (Sandbox Code Playgroud)
任何帮助或建议将非常感谢!
感谢安德鲁·迈尔斯对我最初的问题的评论,我发现了core.trustctime解决false问题的设置。
git config core.trustctime false
Run Code Online (Sandbox Code Playgroud)
有关 inode 更改时间不匹配的问题。我猜测这是因为存储库位于一台计算机上的文件共享上,该计算机的文件系统与我正在使用的文件系统不同。
感谢所有的建议!
| 归档时间: |
|
| 查看次数: |
2412 次 |
| 最近记录: |