Skip to content

Instantly share code, notes, and snippets.

@mr-pascal
Created June 12, 2022 06:48
Show Gist options
  • Save mr-pascal/1b54baea849e6d654e9cdc900aaae541 to your computer and use it in GitHub Desktop.
Save mr-pascal/1b54baea849e6d654e9cdc900aaae541 to your computer and use it in GitHub Desktop.
#!/bin/bash
## Delete "branch1" on remote repository
git push origin --delete branch1
## Delete "branch1" from local system
## "-D" is an alias for "--delete --force"
git branch -D branch1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment