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

# 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-11-06
  • 2021-08-18
猜你喜欢
  • 2021-06-16
  • 2021-08-08
  • 2021-11-01
  • 2022-12-23
  • 2021-04-17
相关资源
相似解决方案