add a git_prune method