From 11acbd0a533cbed92e99628f6315ec6e9c4a2cb2 Mon Sep 17 00:00:00 2001 From: askiiart Date: Mon, 9 Oct 2023 09:42:05 -0500 Subject: [PATCH] Add commit script --- commit.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 commit.sh diff --git a/commit.sh b/commit.sh new file mode 100755 index 0000000..2f43f85 --- /dev/null +++ b/commit.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +GIT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) +cd $GIT_DIR +git add . +git commit -m "Automated backup: $(date +'%Y-%m-%d %H:%M:%S')" +git push origin main