“Git rebase and the golden rule explained” – is an excellent explanation of what happens when you do rebase in git repository. If you know already, or don’t care, at least remember the golden rule:
Never, NEVER, NEVER, rebase a shared branch. By shared branch I mean a branch that exists on the distant repository and that other people on your team could pull.