This commit is contained in:
Ionel Andrei Cataon
2025-12-23 14:47:24 +02:00
parent f27dab6748
commit 279a772162

17
Bash_scripting/autogit.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
# Simple script to add all changes, commit with message "updated", and push
git add .
# Check if there are changes to commit
if git diff-index --quiet HEAD --; then
echo "No changes to commit."
exit 0
fi
git commit -m "updated"
git push
echo "Changes committed and pushed successfully!"