[git] Throw away local commits in Git