Ich versuche, den "Master" Zweig auf Remote zu löschen. Hinweis: Ich versuche nicht, den lokalen Master-Zweig zu löschen, sondern den Master-Zweig auf der entfernten.Wie Master-Zweig auf Remote zu löschen?
Der Befehl ist
git push origin master --delete
Der Fehler, den ich erhalten ist:
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'
Ich bin derzeit nicht auf Master Zweig.
Ich möchte auch keine Standard-Filiale für das Repo. Ist es möglich?
Bitte schlagen Sie eine Lösung vor, um den Master-Zweig auf Remote zu löschen.
Was bedeutet 'git sagen status'? – Christoph
Da das Arbeitsverzeichnis sauber ist (keine nicht geänderten Änderungen); git status zeigt nichts an. – vintrojan