1
0
Fork 0
Scripts/git-bye-branch.sh

6 lines
140 B
Bash
Raw Normal View History

2021-06-30 00:36:37 +02:00
#!/bin/bash
# Delete a branch both locally and on origin.
BRANCH_NAME="$1"
git branch -D $BRANCH_NAME
git push --delete origin $BRANCH_NAME