Created
June 12, 2022 06:48
-
-
Save mr-pascal/1b54baea849e6d654e9cdc900aaae541 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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