【发布时间】:2018-12-15 02:33:01
【问题描述】:
昨天,我的 Git 服务器出现故障,我需要对我的生产系统进行一些紧急更新,该系统通常从我的 Git 服务器运行“sudo git pull”以获取最新更改。
现在我的 Git 服务器已重新启动并运行,我已将更改的修改版本提交给 Git,并希望将它们拉到我的生产服务器上,但是,它告诉我:
error: Your local changes to the following files would be overwritten by merge:
config.php
Please commit your changes or stash them before you merge
我想用 master 分支的最新提交覆盖我的生产服务器上的文件。如何从我的生产服务器执行此操作?
【问题讨论】: