【发布时间】:2013-01-07 15:50:02
【问题描述】:
这就是我正在做的......我如何摆脱原始远程分支?它是什么?
[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
没有运气
【问题讨论】:
-
origin/HEAD不是分支,是指向origin/master的引用,也就是分支。
标签: git