How to remove "origin / origin / master"

Ok, I created an origin/origin/master branch and I clicked it. I am afraid to do some removal operations. What can I do? Is it safe to perform a delete operation?

+6
source share
1 answer

Do not worry, you can always come back with git. Make sure your master branch is local, then try the following:

git push origin :origin/master

It will remove the origin / master branch on the remote "source".

If you want to become super safe, rename your remote from "origin" to "temp", and then do:

git push temp :origin/master

+8
source

Source: https://habr.com/ru/post/969710/


All Articles