git刷新远程分支列表

0 阅读1分钟

前言

如果说要更新远程仓库 origin 的引用并清理本地已过时的远程跟踪分支

命令

执行

git remote update origin --prune

这个时候就会同步远程分支到本地

总结

可以执行该命令刷新远程分支列表