我使用 Git 1.7 版本作为我们的存储库。
作为开发过程的一部分,我对本地文件进行了一些更改(即在我的 Eclipse Workspace 中)
每天一到办公室,我都会使用 git pull 命令从远程存储库中签入最新代码。
今天我执行 git pull 命令时,出现以下错误。
$ git pull
Updating 2be0f0d..e2f796e
error: Your local changes to the following files would be overwritten by merge:
LoginServlet.java
Please, commit your changes or stash them before you can merge.
Aborting
我的问题是,我是否必须执行 git add (要将我的文件添加到暂存区,因为我担心文件不是代码,它正在处理中)
(是否需要将我的文件添加到暂存区,该暂存区仍在编码中)