0
원격에서 'master'브랜치를 삭제하려고합니다. 참고 : 로컬 마스터 브랜치가 아니라 원격 브랜치의 마스터 브랜치를 삭제하려고합니다.리모트에 master 브랜치를 지우는 방법?
명령은 I 나타나는 오류는
git push origin master --delete
입니다 :
remote: error: By default, deleting the current branch is denied, because the next
remote: error: 'git clone' won't result in any file checked out, causing confusion.
remote: error:
remote: error: You can set 'receive.denyDeleteCurrent' configuration variable to
remote: error: 'warn' or 'ignore' in the remote repository to allow deleting the
remote: error: current branch, with or without a warning message.
remote: error:
remote: error: To squelch this message, you can set it to 'refuse'.
remote: error: refusing to delete the current branch: refs/heads/master
To my:shared/pop.team/pop.TallyWorld
! [remote rejected] master (deletion of the current branch prohibited)
error: failed to push some refs to 'my:shared/pop.team/pop.TallyWorld'
나는 현재 하지 마스터 지점입니다.
또한 repo에 대한 기본 분기를 원하지 않습니다. 가능한가?
원격으로 마스터 분기를 삭제하는 솔루션을 제안하십시오.
'자식이 무슨 말을 status' 않습니다
는 복제에 아무것도 체크 아웃하지 않는 원하는 효과를 갖고있는 것 같아요? – Christophmaster
삭제 또한작업 디렉토리가 깨끗하기 때문에 (변경 사항이 unstaged되지 않음); 자식 상태는 아무 것도 표시하지 않습니다. – vintrojan