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