git tag管理 強制同步遠程分支到本地 刪除本地單個分支 刪除遠程單個分支 刪除遠程所有關鍵字多個分支

強制同步遠程分支到本地

git tag -l | xargs git tag -d # 刪除本地全部分支
git fetch origin --prune

刪除本地單個分支

git tag -d $TAG

刪除遠程單個分支

git push origin --delete $TAG

刪除遠程所有關鍵字多個分支

 git show-ref --tag | grep refs/tags/rebuild |awk '{print $2}'|xargs git push origin --delete
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章