diff --git a/git_push.sh b/git_push.sh index 27876bbf..891812bf 100755 --- a/git_push.sh +++ b/git_push.sh @@ -29,6 +29,12 @@ else fi fi +# Check if there are any changes to commit +if git diff --quiet; then + echo "No changes to commit." + exit 0 +fi + # Perform git operations echo "Adding all changes..." git add .