Skip to content

Instantly share code, notes, and snippets.

@emorozov
Created December 19, 2019 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emorozov/5b1441c13f1e2cb165195a1d25477446 to your computer and use it in GitHub Desktop.
Save emorozov/5b1441c13f1e2cb165195a1d25477446 to your computer and use it in GitHub Desktop.
Find all merged branches in fish shell
for branch in (git branch | awk '{ print $1 }')
if git log develop | grep $branch > /dev/null 2>&1
echo Merged $branch
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment