A link to a good description of the git rebase command.
Avoid cloning your entire git history in large projects.