Tôi không thể xóa origin/masterkhỏi máy chủ của mình. Không biết tại sao.
Thông báo lỗi như sau
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 acanzian@elab.ecn.purdue.edu:/export/home/a/elabshare/git/ID-check.git
! [remote rejected] master (deletion of the current branch prohibited)
error: failed to push some refs to 'acanzian@elab.ecn.purdue.edu:/export/home/a/elabshare/git/ID-check.git'
Không, tôi không sử dụng Github .
master, và chúng tôi đã làm điều đó trên một nhánh tạm thời mà bây giờ sẽ trở thành master. Vấn đề duy nhất là tôi không biết tại sao tôi không thể giết chủ trên máy chủ.
mastersang origin/master, thay thế một cách hiệu quả cái cũ bằng cái mới.