По некоторым причинам в последнее время каждый раз, когда я тяну и получаю конфликт слияния, запуск git mergetool
сообщает «Файлы не нуждаются в слиянии»:
$ git pull
First, rewinding head to replay your work on top of it...
Applying: replaced home button with Cancel
Using index info to reconstruct a base tree...
Falling back to patching base and 3-way merge...
error: Your local changes to the following files would be overwritten by merge:
Classes/Controllers/HomeController.m
Please, commit your changes or stash them before you can merge.
Aborting
Failed to merge in the changes.
Patch failed at 0002 moved rollback into cancel button in log watching
When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To check out the original branch and stop rebasing run "git rebase --abort".
$ git mergetool
No files need merging
Если я запустил git rebase --abort
и снова потяну, то то же самое произойдет при другом конфликте или pull завершается успешно без конфликта слияния. Между этими попытками нет никаких отдаленных изменений, так что конфликт не ушел.
Вот как настраиваются эта ветка и пульт:
[branch "develop"]
remote = origin
merge = refs/heads/develop
rebase = true
[remote "origin"]
url = <my repo url>
fetch = +refs/heads/*:refs/remotes/origin/*