a git wrapper to run git commands in a fresh environment