git - Libgit2Sharp: How to update symbolic ref "HEAD" on remote repo? -


I need to update the head on the remote to point to some other branch so that I can remove the branch on the remote I am a repo for removing the master branch on the remote .Network I'm using Push (Remote, "Riffs / Head / Master") call. Is there any way to do this in Libgit2Sharp?

This allows remote, but most do not, because it is so little that you actually Want to.

The active branch on a repository can only be changed from the repository Pushing will not help you here. You have to go to the repository on the server and replace the existing branch, or use whatever administrative interface you have on the server. On the command line, it will be something like

  git symbolic-ref -m "switch active branch" HEAD refs / heads / some-other-branch  

But if you want to do, remove the master branch on the server and do not take birth

  git update-ref -d refs / head / master   

You'll find there.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -