-
-
Save iPublicis/6188c5e950e177bd9f871806b93a786d to your computer and use it in GitHub Desktop.
Check to see if which commits are not shared between two branches
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
#!/bin/bash | |
BRANCH1=${1:-master} | |
BRANCH2=${2:-HEAD} | |
echo; echo "Only in $BRANCH1" | |
git cherry -v $BRANCH2 $BRANCH1 | |
echo; echo "Only in $BRANCH2" | |
git cherry -v $BRANCH1 $BRANCH2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment