From 298e56fd4940a91d76d535426969849d9e0be298 Mon Sep 17 00:00:00 2001 From: tootbrute Date: Fri, 20 Mar 2026 18:18:29 +0800 Subject: [PATCH 1/3] test git script --- git-update.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 git-update.sh diff --git a/git-update.sh b/git-update.sh new file mode 100755 index 0000000..48e546b --- /dev/null +++ b/git-update.sh @@ -0,0 +1,5 @@ +echo "Git commit message:" +read +git add . +git commit -m "$REPLY" +git commit push -u origin From 3bcd19923e71ad679fea1036659915f58352cf58 Mon Sep 17 00:00:00 2001 From: tootbrute Date: Fri, 20 Mar 2026 18:19:05 +0800 Subject: [PATCH 2/3] test git script --- git-update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-update.sh b/git-update.sh index 48e546b..dd71bb9 100755 --- a/git-update.sh +++ b/git-update.sh @@ -2,4 +2,4 @@ echo "Git commit message:" read git add . git commit -m "$REPLY" -git commit push -u origin +git commit push -u origin main From 1875f11ac10d7c7b52b90569a60b3079cae414e0 Mon Sep 17 00:00:00 2001 From: tootbrute Date: Fri, 20 Mar 2026 18:21:29 +0800 Subject: [PATCH 3/3] test git script --- git-update.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/git-update.sh b/git-update.sh index dd71bb9..26ded76 100755 --- a/git-update.sh +++ b/git-update.sh @@ -1,5 +1,12 @@ -echo "Git commit message:" -read +#!/run/current-system/sw/bin/bash +# add nix config to git + +COMMIT_MSG="Update NixOS config." +echo "Commit message?" +# what did I change? +read COMMIT_MSG +echo "OK!" + git add . -git commit -m "$REPLY" -git commit push -u origin main +git commit -m "$COMMIT_MSG" +git push origin main