Skip to content

Instantly share code, notes, and snippets.

@scriptype
Last active September 16, 2024 08:02
Show Gist options
  • Save scriptype/c37571ac902f4a7698f6cbd35345f525 to your computer and use it in GitHub Desktop.
Save scriptype/c37571ac902f4a7698f6cbd35345f525 to your computer and use it in GitHub Desktop.
check if there are any changes in the git repo
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