knossos/git-update.sh
2026-03-20 18:21:29 +08:00

12 lines
224 B
Bash
Executable file

#!/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 "$COMMIT_MSG"
git push origin main