我在 git branch -a 看到的分支数量明显比 git branch 和网页上看到的多, 看名字应该是本地的开发的分支, 线上已经删除, 本地删除了, 但是 branch -a 里没有删除. 怎样删除这里边的分支呢?
git branch -a
git branch
branch -a
走同样的路,发现不同的人生
git fetch origin --prune
or
git branch -d -r origin/branch_name
git branch -d localBranch
According to what the poster said in the comments, then git fetch --all
git fetch --all
git push origin :gh-pages git branch -D gh-pages git branch --bare gh-pages
It’s not what I say, help is there. I really don’t know how to delete it. I can just click branches in the web page.
git fetch origin --prune
or
git branch -d -r origin/branch_name
git branch -d localBranch
According to what the poster said in the comments, then
git fetch --all
It’s not what I say, help is there. I really don’t know how to delete it. I can just click branches in the web page.