Files
it_school/autogit.sh
Ionel Andrei Cataon ad4a4cf8f6 Refacere repo
2026-02-12 14:14:46 +02:00

18 lines
313 B
Bash
Executable File

#!/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!"