Saving the git history to a shadow directory