這就是我正在做的....我如何擺脫遠程分支的起源?還有,這是什麼?無法刪除遠程git分支
[master] /dir: git status
# On branch master
nothing to commit (working directory clean)
[master] /dir: git remote show
github
[master] /dir: git branch -r
github/master
origin/HEAD -> origin/master
[master] /dir: git branch -rd origin/HEAD
error: remote branch 'origin/HEAD' not found.
[master] /dir: git branch -rd origin
error: remote branch 'origin' not found.
[master] /dir: git branch -rd origin/HEAD -> origin/master
-bash: origin/master: No such file or directory
[master] /Applications/MAMP/htdocs/asanawww: git branch -rd origin/master
error: remote branch 'origin/master' not found.
[master] /Applications/MAMP/htdocs/asanawww: git push origin :master
fatal: 'origin' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
我也試過
git gc --prune=now
沒有運氣
'原點/ HEAD'不是分支,它是一個參考指向'原點/ master'的,這是分支。 – LopSae