Git 存储库已被克隆到多个开发人员的本地计算机上。对存储库中的代码进行了一些更改。我们现在收到错误:
error: Your local changes to the following files would be overwritten by merge:
public_html/sites/file
public_html/sites/file1.txt
public_html/sites/file2.txt
Please, commit your changes or stash them before you can merge.
Aborting
我在网上阅读了很多主题,并提出了几种不同的选择。运行了一种方法:
git stash
git pull
git stash pop
我想我了解存储的基本原理。我的问题是,这是一个好的解决方案吗,我可以使用这种方法遇到任何问题吗?总的来说,我对 Web 开发有一个合理的理解,但我是一个相当基本的 Git 用户,目前没有太多能力让自己摆脱困境。