Created
March 22, 2024 22:39
-
-
Save keithhackbarth/beb811da434107bb353eada43c6e47be to your computer and use it in GitHub Desktop.
Check for Unstaged Changes
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/sh | |
# Check for unstaged changes | |
[ `git status --porcelain=1 | wc -l` -ne 0 ] && echo "unstaged changes found" && exit 1 | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment