大家在刪除遠程分支後
git branch -a
還是可以看到已刪除的遠程分支,時間一長就顯的非常亂了
以下是解決方法:
git remote show origin //可以看到刪除分支情況
git remote prune origin
再執行
git branch -a
就可以看到已經看不見已經刪除的分支了
刪除遠程分支後,branch -a還是能看到的解決方法
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
git常用命令小計
wchyumo2009
2020-07-08 12:20:37
centos7源碼安裝kong分佈式網關實踐
一: 安裝openssl和pcre yum -y install pcre-devel openssl openssl-devel 安裝git yum install git -y
幽默龙
2020-07-08 12:31:24
Desire rom - build kernel
dkyang
2020-07-08 12:22:51
八、SpringCloud——Config 分佈式配置中心Demo
仁钦宝
2020-07-08 11:45:52
centos 7 下 gitlab-runner 自動 CI/CD (持續集成/持續部署) 配置
你个大猪蹄子
2020-07-08 11:16:39
Gerrit status Merge conflict 解決
liuskyter
2020-07-08 11:16:26
git 本地庫的操作
yue_zhong
2020-07-08 11:09:17
idea配置Git上傳代碼到Gitlab
leo_gothic
2020-07-08 10:42:16
Git::取消跟蹤文件&&重新跟蹤
取消跟蹤文件&&重新跟蹤 如果修改了.gitignore文件,那麼需要進行如下操作: git rm -rf --cached . git add ./*
dieju8330
2020-07-08 10:35:13
[轉載]::Github進行fork後如何與原倉庫同步
dieju8330
2020-07-08 10:35:13
git異常:fatal: 'idea-line-2' is not a commit and a branch 'idea-line-2' cannot be created from it
創建分支並且拉去遠程同步分支的過程中出現該異常: fatal: 'idea-line-02' is not a commit and a branch 'idea-line
Danny_idea
2020-07-08 09:57:37
gitignore的使用
ynd_sg
2020-07-08 09:20:23
Git使用所遇問題記錄
小坤同学
2020-07-08 12:37:56
GitHub中常用高頻操作
不如烂笔头
2020-07-08 11:54:44