test git script
This commit is contained in:
parent
3bcd19923e
commit
1875f11ac1
1 changed files with 11 additions and 4 deletions
|
|
@ -1,5 +1,12 @@
|
||||||
echo "Git commit message:"
|
#!/run/current-system/sw/bin/bash
|
||||||
read
|
# 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 add .
|
||||||
git commit -m "$REPLY"
|
git commit -m "$COMMIT_MSG"
|
||||||
git commit push -u origin main
|
git push origin main
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue