|
|
|
|
|
by rectang
1904 days ago
|
|
A pull is just a fetch followed by a merge. So to solve this problem, just fetch instead of pull! Then do `git merge --ff-only` and if it doesn't work, do the rebase or whatever else to resolve the conflict. I did this long before I set `merge.ff=no`. I hate it when pull creates crappy graphs — it's something I try to help all my colleagues to avoid. I often wish that `git pull` didn't exist. |
|
Of course, that’s what I do. But “git pull” is still a danger, and configuring merge.ff=only protects against that danger.