home/.local/script/gitsave

14 lines
145 B
Plaintext
Raw Normal View History

2024-04-03 04:34:54 +00:00
#!/bin/bash
2024-03-26 21:15:01 +00:00
git add -A
2024-04-03 04:34:54 +00:00
if [ "$#" -eq 0 ]; then
git commit -m "a"
2024-03-26 21:15:01 +00:00
else
2024-04-03 04:34:54 +00:00
array=("$@")
2024-04-12 19:03:58 +00:00
str="${array[@]}"
2024-04-03 04:34:54 +00:00
git commit -m "$str"
2024-03-26 21:15:01 +00:00
fi
git push