This gist shows how to use
rebase to change the Git history of a repo.
Imagine you realise that the first commit to your repo should be different
(maybe it's incomplete, includes something it shouldn't or simply could be
cleaner). However, since then you and others have made many changes to the repo
that you want to preserve. Here we show how to split the first commit into
multiple and re-attach the remaining version history to these new commits.
Let's make a dummy git repo
rebase-root and add two files to it. We commit
them with the commit #1.