Skip to content

Instantly share code, notes, and snippets.

@arturkot
Last active October 18, 2022 06:34
Show Gist options
  • Save arturkot/ab1e5e53280de108a627e27c1ce7a002 to your computer and use it in GitHub Desktop.
Save arturkot/ab1e5e53280de108a627e27c1ce7a002 to your computer and use it in GitHub Desktop.
# Git-branches
function git-branches() {
if [ ! -z $1 ]
then
author=$1
else
author="Artur"
fi
git for-each-ref --format=' %(authorname) %09 %(refname)' --sort=authorname | grep ${author} | grep -v 'origin/release-'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment