by Devin Yang
(This article was automatically translated.)

Published - 7 years ago ( Updated - 7 years ago )

How do I delete my remote branch on GitHub.
First of all, you can use the command to view the origin
git remote -v

At this time, the display is as follows, my remote origin:
origin https://github.com/DevinY/dlaravel.git (fetch)
origin https://github.com/DevinY/dlaravel.git (push)


Here you can see that origin represents the dlaravel repo on my github.
So, if I have a branch called dlarave-dev and I want to remove it,
You can use the following command:

git push --delete origin dlaravel-dev



Open the GitHub page to view it again, and you can see that my branch has been removed.
github branches

Tags: git

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


gitlab,reset password

reset gitlab password

The gitlab built with docker has been useless for a long time, and I forgot the password, how to reset it. ​​​​​​We should be able to enter the gitlab container through the following command...

git

Remove the git remote or local tag

How to delete the Tag on the remote or local end of git.

git

Display your own version control through the git command, for example, within 7 days?

How to display your own version control through git commands? These commands are for reference only, at least the author name should be changed. --author parameter, can also be mailbox