未经处理的回购中的Git错误:请在合并之前提交更改或存储它们

时间:2018-03-23 21:41:55

标签: git production-environment git-commit git-pull

今天我将5个提交推送到我的一个项目,然后在服务器上我提取了更新,一切都很好。 几个小时后推,然后再次拉动网络服务器,然后git抛出:

error: Your local changes to the following files would be overwritten by merge: storage/.DS_Store storage/app/.DS_Store storage/app/public/.DS_Store storage/app/public/css/admin.css storage/app/public/css/master.css storage/app/public/img/.DS_Store storage/app/public/img/products/77/textures/black.png storage/app/public/img/slider/image1.jpg Please commit your changes or stash them before you merge.

在此期间没有人在生产服务器上编辑这些文件,为什么git会抱怨?有没有人有想法?

1 个答案:

答案 0 :(得分:0)

听起来您的服务器上的存储库可能不同步。

您可以在服务器上获取git状态并查看其内容。 也可以做一个git status -b来确保你在你的生产分支上。

相关问题