这就是我正在做的......我如何摆脱原始远程分支?还有,这是什么?
[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
没有运气