Skip to content

Instantly share code, notes, and snippets.

@dearaujoj
Created October 30, 2013 18:14
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 dearaujoj/7237349 to your computer and use it in GitHub Desktop.
Save dearaujoj/7237349 to your computer and use it in GitHub Desktop.
Find differences between two branches
MASTER=`git log --pretty=format:'%H' develop | sort`
DEV=`git log --pretty=format:'%H' new_develop | sort`
for i in `diff <(echo "${MASTER}") <(echo "${DEV}") | grep '^>' | sed 's/^> //'`;
do
git --no-pager log -1 --oneline $i;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment