📜  git clean 分支 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:32.499000             🧑  作者: Mango

代码示例4
git checkout main
git branch -D $(git branch | grep -v 'main') # delete all local but main
git fetch # fetch from origin
git remote prune origin # delete non-existent remote branches
git pull # get to latest on main