远程分支已经删除,对应的本地分支还存在

# git remote show origin

* remote origin
Fetch URL: git@github.com:xxx/xxx.git
Push URL: git@github.com:xxx/xxx.git
HEAD branch: master
Remote branches:
master tracked
refs/remotes/origin/b1 stale (use 'git remote prune' to remove)
Local branch configured for 'git pull':
master merges with remote master
Local ref configured for 'git push':
master pushes to master (up to date)

 

# git remote prune origin

删除本地过时分支

相关文章:

  • 2021-05-22
  • 2021-07-24
  • 2021-12-24
  • 2021-07-29
  • 2021-10-28
  • 2021-11-07
  • 2021-10-19
猜你喜欢
  • 2021-06-16
  • 2021-04-17
  • 2019-08-14
  • 2021-08-18
  • 2021-04-04
  • 2021-05-04
相关资源
相似解决方案