diff --git a/script.sh b/script.sh new file mode 100755 index 0000000..51acd86 --- /dev/null +++ b/script.sh @@ -0,0 +1,6 @@ +if ! (git diff --exit-code origin/master..master > /dev/null) \ + || ! (git diff --exit-code master > /dev/null) \ + || ! [[ -z "$(git status --porcelain)" ]] ; then + echo "Your local repo has some changes that aren't pushed to origin/master ." + exit 1 +fi \ No newline at end of file