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
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
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
# Delete remote branches that have been merged into 'origin/develop' (besides current, 'origin/develop' and 'origin/master') | |
git pull --rebase upstream develop:develop | |
git push origin develop:develop | |
git remote prune origin | |
git branch -r --merged origin/develop | grep -wv 'master\|develop' | sed 's/^origin\///' | xargs -n 1 git push -d origin | |
git remote prune origin | |
# Delete local branches that have been merged into 'develop' (besides current, 'develop' and 'master' branches) | |
git branch --merged develop | grep -wv '\*\|master\|develop' | xargs -n 1 git branch -d |