Hi

I just set up a sandbox (clone of the true repository)

I tried out the following 
       1. git branch -m master default
       2. Change the «gitlab-default» branch to something else

       3. git push origin --delete master

       4. git push origin -u default
       5. Set the default branch as «gitlab-default»

However 3. Fails with 


,----
| remote: error: By default, deleting the current branch is denied, because the 
next
| remote: 'git clone' won't result in any file checked out, causing confusion.
| remote:
| remote: You can set 'receive.denyDeleteCurrent' configuration variable to
| remote: 'warn' or 'ignore' in the remote repository to allow deleting the
| remote: current branch, with or without a warning message.
| remote:
| remote: To squelch this message, you can set it to 'refuse'.
| remote: error: refusing to delete the current branch: refs/heads/master
| To ssh://git.code.sf.net/p/matlab-emacs-mirror/code
|  ! [remote rejected] master (deletion of the current branch prohibited)
| error: failed to push some refs to 
'ssh://git.code.sf.net/p/matlab-emacs-mirror/code'
`----

But I tried out 
git config --local receive.denyDeleteCurrent ignore   

And it did not help.

Any idea what is going wrong here.
On gitlab I have to change  the default branch form master to something
else via their webinterface.

I don't see anything like this on sourceforge.

Any ideas?

Regards

Uwe 
-- 
I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the EU and NATO membership of Ukraine. 

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/87bka83o4a.fsf%40mat.ucm.es.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to