4 ms·
Maybe a bit off-topic, but still on the topic of git and merge conflicts: Soon I will have to do a pretty big merge, with so many conflicts expected that I don
by perlgeek 14y ago
Maybe a bit off-topic, but still on the topic of git and merge conflicts:
Soon I will have to do a pretty big merge, with so many conflicts expected that I don't know if I can resolve them in one day. So usually when I have such a non-minimal task, I create a branch for it. Is there any sensible way to do a merge in a branch, and resolve the conflicts on a file-by-file base, with separate commits for each one?
Or maybe some other way to break down many merge conflicts into several small pieces?
(We have a heavily patched version of an open source project at $work, and whenever there is a new upstream release, merging is a huge pain. We do try to contribute some of our changes back to upstream, but many changes are simply too specific to go upstream).
- flocial 14y agoDoing a big git pull frequently leads to trouble. The rerere command might be particularly useful for recurring conflicts. http://notes.envato.com/developers/rebasing-merge-commits-in-git/ http://notes.envato.com/developers/rebasing-merge-commits-in... https://news.ycombinator.com/item?id=2874968 https://news.ycombinator.com/item?id=2874968 http://git-scm.com/2010/03/08/rerere.html http://git-scm.com/2010/03/08/rerere.html
- perlgeek 14y agoThe conflicts aren't recurring, there are just many of them :(