Created
February 1, 2019 15:36
-
-
Save garettmd/897b56da4c0c4babba95bd8d4ad9e629 to your computer and use it in GitHub Desktop.
Show merged git branches in a project directory
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
function show_merged() { | |
if [[ -z $1 ]] | |
then | |
BRANCH=master | |
else | |
BRANCH="$1" | |
fi | |
git branch --merged "${BRANCH}" | grep -Ev "${BRANCH}|master" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment