From f27dab6748d76e187304ab8616e206ffe45eecde Mon Sep 17 00:00:00 2001 From: Ionel Andrei Cataon Date: Tue, 23 Dec 2025 14:41:16 +0200 Subject: [PATCH] updated --- autogit.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 autogit.sh diff --git a/autogit.sh b/autogit.sh new file mode 100755 index 0000000..74e33ca --- /dev/null +++ b/autogit.sh @@ -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!"