Do you know The Golden Rule of Rebasing?
Last updated by SSW.Rules.SharePointExtractor almost 4 years ago.See historyRebasing is great for ensuring a clean project history... but it can be dangerous in inexperienced hands.
The golden rule of git rebase is to never use it on public branches. (ie. never rebase master).
You should never rebase master onto a feature branch. This would move all of the commits in master onto the tip of the feature branch (not the other way around).
Since rebasing results in brand new commits, Git will think that your master branch’s history has diverged from everybody else’s. If you were to Push this to the server... expect lots of pain to fix it up!