$ git branch-d < branch _ name & gt
Step 2 delete useless tags
$ git tag-d & lt; tag _ name & gt
3. Clean up the local version library
$ git gc - prune=now