1. git remote prune --dry-run origin 查看当前有哪些是该消失还存在的分支

  在gitlab上删除分支后,本地git branch -r还能看到

2. git remote prune origin 删除上面展示的所有分支

  在gitlab上删除分支后,本地git branch -r还能看到

3. git fetch --prune origin

  如果没有结果输出说明已经删除完成了

 

相关文章:

  • 2021-10-28
  • 2022-02-08
  • 2021-12-19
  • 2021-05-15
  • 2021-05-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
  • 2021-10-18
  • 2021-09-18
  • 2022-01-04
相关资源
相似解决方案