1

我的项目在 laravel forge 中使用 digitalocean 首先我添加了一个协作者并将其删除,因为当我尝试通过 git push origin master 修改代码时,我在 laravel forge 的仪表板中收到此错误

From github.com:name/project
 * branch            master     -> FETCH_HEAD
   aad781c..e558842  master     -> origin/master
error: Your local changes to the following files would be overwritten by merge:
    public/css/style.css
Please, commit your changes or stash them before you can merge.
Aborting
Updating aad781c..e558842

现在我收到一条新消息

From github.com:project/name
 * branch            master     -> FETCH_HEAD
   be3f227..aeddc3a  master     -> origin/master
Auto-merging .idea/workspace.xml
CONFLICT (add/add): Merge conflict in .idea/workspace.xml
Automatic merge failed; fix conflicts and then commit the result.

请任何帮助将不胜感激谢谢

4

1 回答 1

1

转到您在 Digitalocean 上拥有存储库的目录并运行

git stash

当您想保存此修改后的文件以供以后使用时

或者

git checkout public/css/style.css

如果您不需要此修改后的文件,并且希望获得与您的存储库中相同的文件。

现在您可以执行标准程序从 repo 获取修改后的文件(git pull或任何其他方式)

于 2015-12-23T14:31:35.650 回答