feat(git):

This commit is contained in:
Ayo Ayco 2025-06-23 11:31:25 +02:00
parent ddf58e2786
commit 8f6510c1f4
2 changed files with 16 additions and 1 deletions

6
ayo.sh
View file

@ -12,6 +12,12 @@ case $1 in
gs) # js - journal sync
. ${HOME}/Projects/scripts/git.sh stat $2 $3 $4 $5 $6 $7 $8 $9
;;
gc) # js - journal sync
. ${HOME}/Projects/scripts/git.sh commit $2 $3 $4 $5 $6 $7 $8 $9
;;
gp) # js - journal sync
. ${HOME}/Projects/scripts/git.sh push $2 $3 $4 $5 $6 $7 $8 $9
;;
## SCRIPTS

11
git.sh
View file

@ -21,10 +21,19 @@ if [ "$1" = "stat" ]; then
}
elif [ "$1" = "commit" ]; then
{
git add .
git status
git commit -m "$2"
} || {
# Report; TODO: write log
echo ">>> Stat failed"
echo ">>> Commit failed"
}
elif [ "$1" = "push" ]; then
{
git push
} || {
# Report; TODO: write log
echo ">>> Push failed"
}
else
echo "git tools"