Mon, 09 Mar 2009
Today got asked by a colleague, who wanted to throw away the early history of his repo. git allows you easily to rewrite the history start with:
echo $FIRST_SHA >> .git/info/graft git filter-branch -f
Then with interactive git rebase you can rewrite this important initial commit. Of course you have to define $FIRST_SHA and your repo shouldn't be dirty.