Created
December 28, 2014 11:56
-
-
Save naosim/c0cd91da0b3fff91a048 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
git fetch | |
current=`git log --oneline master -1` | |
origin=`git log --oneline origin/master -1` | |
if [ "$current" = "$origin" ] ; then | |
exit 0 | |
fi | |
# do something... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment