【发布时间】:2010-08-31 16:49:35
【问题描述】:
当我从队友那里拉取更改时,我通常rebase,并且经常会发生冲突:
...
CONFLICT (content): Merge conflict in app/views/search/index.html.erb
Auto-merging public/stylesheets/application.css
CONFLICT (content): Merge conflict in public/stylesheets/application.css
Failed to merge in the changes.
Patch failed at 0001 organizing
When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To restore the original branch and stop rebasing run "git rebase --abort".
所以在打开每个有冲突的文件后,修复它然后提交修复的文件:
~/Projects/myApp[956f6e1...]% git rebase --continue
You must edit all merge conflicts and then
mark them as resolved using git add
我仍然遇到同样的错误...
~/Projects/myApp[64b3779...]% git rebase --continue
Applying: organizing
No changes - did you forget to use 'git add'?
When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To restore the original branch and stop rebasing run "git rebase --abort".
我有点一直有这个问题,但我想我从来没有真正选择解决它,我会总是变得懒惰和git rebase --skip。
我该如何以正确的方式实际解决冲突?
【问题讨论】:
标签: git