home/.local/script/gitsave

14 lines
147 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=("$@")
str="'${array[@]}'"
git commit -m "$str"
2024-03-26 21:15:01 +00:00
fi
git push