Open pandaomeng opened 4 years ago
https://www.pandaomeng.com/2020/prune-invalid-branch/
清除无效的分支 清除本地中无效的远程追踪分支 通过下列的命令可以删除 本地中无效的远程追踪分支 即:远端已经删除过了,本地还存在 remotes/origin/fix/foo,则可通过这个命令清理 1git remote prune origin 该命令不会删除本地的分支 清除本地的分支 通过以下命令我们可以找到所有带有 fix 或者 feat 的分支 1git branch | grep -E
https://www.pandaomeng.com/2020/prune-invalid-branch/
清除无效的分支 清除本地中无效的远程追踪分支 通过下列的命令可以删除 本地中无效的远程追踪分支 即:远端已经删除过了,本地还存在 remotes/origin/fix/foo,则可通过这个命令清理 1git remote prune origin 该命令不会删除本地的分支 清除本地的分支 通过以下命令我们可以找到所有带有 fix 或者 feat 的分支 1git branch | grep -E