feat(git):
This commit is contained in:
parent
ddf58e2786
commit
8f6510c1f4
2 changed files with 16 additions and 1 deletions
6
ayo.sh
6
ayo.sh
|
@ -12,6 +12,12 @@ case $1 in
|
||||||
gs) # js - journal sync
|
gs) # js - journal sync
|
||||||
. ${HOME}/Projects/scripts/git.sh stat $2 $3 $4 $5 $6 $7 $8 $9
|
. ${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
|
## SCRIPTS
|
||||||
|
|
||||||
|
|
11
git.sh
11
git.sh
|
@ -21,10 +21,19 @@ if [ "$1" = "stat" ]; then
|
||||||
}
|
}
|
||||||
elif [ "$1" = "commit" ]; then
|
elif [ "$1" = "commit" ]; then
|
||||||
{
|
{
|
||||||
|
git add .
|
||||||
|
git status
|
||||||
git commit -m "$2"
|
git commit -m "$2"
|
||||||
} || {
|
} || {
|
||||||
# Report; TODO: write log
|
# Report; TODO: write log
|
||||||
echo ">>> Stat failed"
|
echo ">>> Commit failed"
|
||||||
|
}
|
||||||
|
elif [ "$1" = "push" ]; then
|
||||||
|
{
|
||||||
|
git push
|
||||||
|
} || {
|
||||||
|
# Report; TODO: write log
|
||||||
|
echo ">>> Push failed"
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
echo "git tools"
|
echo "git tools"
|
||||||
|
|
Loading…
Reference in a new issue