Sim*_*ies 8 git macos bitbucket
我已到处搜索并尝试了各种解决方案,但仍然收到错误: 您对以下文件的本地更改将被合并覆盖
我没有任何承诺,因为状态告诉我以下内容:
# On branch develop
# Your branch is behind 'origin/develop' by 1 commit, and can be fast-forwarded.
# (use "git pull" to update your local branch)
#
nothing to commit, working directory clean
Run Code Online (Sandbox Code Playgroud)
那么我做一个git pull,然后得到以下内容:
Updating 67020e6..6dd23de
error: Your local changes to the following files would be overwritten by merge:
app/filename.php
Please, commit your changes or stash them before you can merge.
Aborting
Run Code Online (Sandbox Code Playgroud)
但由于我没有任何提交,如果我做一个git stash,我得到没有本地更改来保存
那么如何解决问题并使用远程修正下载和更新本地计算机.
有点历史意义:我必须在家里工作一台本地机器并且我已经完成了家里的修改并推动它们,我现在正试图用这些更新来更新我的本地工作机器.
编辑更新 由于我暂时无法回答我自己的问题,我找到了解决这个问题的答案:
在我写的分支上:
git reset --hard
Run Code Online (Sandbox Code Playgroud)
然后拉动工作.
| 归档时间: |
|
| 查看次数: |
9757 次 |
| 最近记录: |