simplify git_cleanup