Delete a remote GIT branch
If your remote origin
repository contains a branch that you'd like to delete. You can use the push
command to do so.
The following command remotely delete the branch named dev
.
git push origin :dev
Please note that there is a colon
in front of the branch name.
Written by Chanwit Kaewkasi
Related protips
1 Response
I found another way by add option --delete
git push origin --delete dev
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#