A few people at work swear by git pull --rebase
. In fact, they won't git pull
without it, even when several people are working on a shared branch.
It is my understanding that this rewrites history. In fact, I have seen it said that one should never rebase on a public/shared branch.
My question:
- What is a concrete example of the way rebasing "rewrites history"?
- What are some concrete examples of Bad Things that could occur if you violate the "Golden Rule of Rebasing"?
Possible difference with suggested dupe:
I'm not talking about rebasing master into a feature branch. I am talking about several developers working on the same feature branch, doing a git pull --rebase
, making some changes, pushing (doing another pull --rebase
if the push is rejected), etc.