我对这个GitHub的仓库中的单一分支(未掌握),现在我想重新命名它,由于某种原因,我得到这个错误:的Git拒绝删除分支
git push origin :OldName
To [email protected]:user/gitRepo.git
! [remote rejected] OldName (refusing to delete the current branch: refs/heads/OldName)
error: failed to push some refs to '[email protected]:user/gitRepo.git'
这是因为我没有任何主分支?这里是我的git branch -a
:
OldName
remotes/origin/HEAD -> origin/OldName
remotes/origin/OldName