git 分支的那点事

128 阅读1分钟
  • 删除本地分支

git branch -d <BranchName>

  • 更新远程分支

git remote update

  • 查看哪些远程分支需要清理

git remote prune <BranchName> --dry-run

  • 清理已经失效远程分支

git remote prune <BranchName>