Deleting remote branches
git push <remote> :<remote_branch>
in my case
git push origin :oauth-config
Written by Adam Jonas
Related protips
2 Responses
There is more intuitive
git push --delete origin branch_name
in git for several versions already.
over 1 year ago
·
what you're doing is using git's ability to not have a 1 to 1 push requirement.
You can do:
git push origin experimental_branch:master
and that will push your experimental branch to the master branch.
git push origin :master
is pushing "nothing" to master thereby deleting it.
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#