Git Delete a Local or Remote Branch

To delete a local branch use:

git branch -d the_local_branch

To remove a remote branch user:

git push origin :the_remote_branch

Other related posts:
How to Clone a Git Repository into a Specific Folder?
Change the URI for a Remote Git Repository
How to Merge a Local Git Branch with Master
How to Setup Aliases and Shortcuts for Git Commands
How to create a .gitignore file in Windows

This content has been helpful to you?

Thanks for contributing!

Yes No