Merge commits since creating the branch
git branch --remote | # get all branches
awk '{print "echo " $0 " `git merge-base" $0 " origin/master`"}' | # commands to produce "<branch name> <common ancesstor>"
xargs -0 bash -c | # execute commands
awk '{print "echo " $1 " - `git log --pretty=oneline " $2 "..." $1 " --merges | wc -l`"}' | # commands to count merges between
xargs -0 bash -c # execute commands
Written by Marcin Wosinek
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#