Last active
September 16, 2024 08:02
-
-
Save scriptype/c37571ac902f4a7698f6cbd35345f525 to your computer and use it in GitHub Desktop.
check if there are any changes in the git repo
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
if [[ -z `git status | grep "git add <file>"` ]]; | |
then | |
echo same; | |
else | |
echo changed; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment