How can I delete a branch?

djuncos
Giga Contributor

I'm currently in the Workflow module of the tutorial. I've had a few problems and, rather than continue to try and pin down where exactly I went wrong, I would like to start this module over without my saved (pushed) work from this module. That is, I would like to create a branch from the tag LoadForWorkflowModule.

I realize that I cannot create a new branch with the name "Workflow", since I already have created that, and I also realize that I could create a new branch from this tag with another name, like "Workflow1". However, I would really like to just delete this branch and create a new one from this tag with the original name, "Workflow". How can I do this?

Update: I have deleted the Workflow branch in my github repository, but that still does not allow me to create a new branch named "Workflow" in Studio.

Thanks.

3 REPLIES 3

Jacopo1
Kilo Contributor

You have to sing in GitHub, and click on your instance and yours branch, and from there you can delete whenever branch you like

Inderjeet Singh
ServiceNow Employee
ServiceNow Employee

So you can do it like this - go to source control in your servicenow studio -> switch to master branch -> again go to source control and click on apply remote changes.(this will update the application in your studio with one one on your github so if you have deleted the branch on github then it will be deleted from studio as well).

Thank you.

potrosw
Kilo Contributor

and how to create a new branch without any application files in it ?