Lets see how we do the same using command line.
git push <REMOTE_NAME> :<BRANCH_NAME>Note the space between remote name and the colon. By following this syntax you are asking git to push nothing hence git push will delete the branch in remote repository.
Eg:-
udara@udara-home:~/workspace/h2-social-adaptor$ git push origin :v2
To git@github.com:udarakr/h2-social-adaptor.git
- [deleted] v2
No comments:
Post a Comment