4 ms·
Isn't that what "git pull --rebase" does?
by nwellnhof 2y ago
Isn't that what "git pull --rebase" does?
- petepete 2y agoI've had it enabled by default for years and years. It's always what I want. [pull] rebase = true
- kazinator 2y agoI did that for several months in 2010. It's too error prone; you will forget to have that configured somewhere and get a merge by mistake. So then I trained myself on "pull --rebase". I soon realized, I don't want to be combining fetch and rebase. The best way was to just scrub the pull command from the vocabulary.
- mabster 2y agoIt's fine nowadays but there was a time when "git pull --rebase" worked slightly differently to "git fetch" and "git rebase". I'd get conflicts with the former that I didn't get with the latter.
- kazinator 2y agoI don't rebase immediately after a git fetch. I look at what is new first. I might not rebase over all of it. E.g. the first three commits may have something I need to pick up, but then after that there may be something I don't want to integrate with yet.