DEV Community

Discussion on: Tiny Tips : git pull --rebase

Collapse
 
mbrehin profile image
Maxime Bréhin

Hi Thibaut, I recommend git pull --rebase=merges to preserve the "bumps" of local merges or better yet, do it automatically at pull by configuring it by default: git config --global pull.rebase merges.

Collapse
 
tandrieu profile image
Thibaut Andrieu

Oh gosh, I wish I had knew this option sooner 😀

I try to avoid local merge. If you have a local merge, it means you have a dependency on another branch, so it means a feature branch has lived too much time on its own and should have been merged sooner. But yeah, theory and practice...