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


docker,git

Use docker-compose to quickly build a private git service

How to quickly set up an out-of-the-box Gogs environment? This article introduces the use of docker-compose.yml to quickly establish a gogs environment.

git

Forcibly clear all data in the remote repo

Forcibly clear all data in the remote repo

git,Synology

Sharing about gitlab's docker settings

My friend wants to study the operation of gitlab. I said that it takes less than ten minutes to install it with docker image. There is also a gitlab package on my Synology Nas that can be installed directly. As a result, either the installation failed, or it was being repaired, or it was already started and could not be used. @@ Also choked by friends...