尝试在 laravel forge 中修改项目时出错

error when trying to modify project in laravel forge

我的项目在 laravel forge with 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.

如有任何帮助,我们将不胜感激谢谢

转到您在 Digitalocean 上的存储库所在的目录,然后 运行

git stash

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

git checkout public/css/style.css

如果您不需要这个修改后的文件并且想要获得与您的存储库中相同的文件。

现在您可以执行标准程序从存储库中获取修改后的文件(git pull 或您执行此操作的任何其他方式)