这是该功能分支的当前状态。
最近的步骤:
- 远程开发分支分叉
- 获取远程开发分支
- 存储本地特性分支的分叉更改(我想保留)
- 从本地开发分支重新设置特性分支
- 弹出特性分支更改
- 应用特性分支更改
结果:
$ git status
# On branch feature-foo-branch
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: foo/bar.php
# modified: foo/baz.php
#
# Unmerged paths:
# (use "git reset HEAD <file>..." to unstage)
# (use "git add/rm <file>..." as appropriate to mark resolution)
#
# both modified: foo/conflict.php
#
使用-s
选项获取状态信息
$ git status -s
UU foo/conflict.php
M foo/bar.php
M foo/baz/php
git建议使用add
或rm
来解决冲突。那么UU
是什么意思,为什么这些选项可以修复它呢?
我找到的所有与此类似的解决冲突的信息都说不要使用 rm
,这让我想知道为什么git认为它是合适的。
在git手册页面中,我找不到任何关于UU
的内容,但是有这个SO问题,该问题看起来也很难搞清楚为什么在这种情况下使用add
会起作用。