4 ms·
Running git pull --rebase is a good practice. That way you can abort and roll back if there are any serious conflicts.
by mhartl 15y ago
Running
git pull --rebase
is a good practice. That way you can abort and roll back if there are any serious conflicts.
- gcv 15y agoOnly if you actually want to rebase! While rebasing is great, it rewrites history and should not be done lightly.
- hesselink 15y agoBe careful with this though: if you have a merge ready to push, and you pull with rebase, your merge will be 'flattened' and all commits in it duplicated on your current branch. I've been bitten by this a couple of times.