1
0
mirror of https://gitlab.com/JKANetwork/jka-toolkit.git synced 2026-02-20 20:11:32 +01:00
This commit is contained in:
kprkpr
2016-06-13 00:09:33 +02:00
parent c041fc4268
commit 10435fd96d

View File

@@ -1,19 +1,19 @@
#!/bin/bash
gitopt=`dialog --stdout --nocancel --scrollbar --menu "Odiwhan, git simple" 0 0 6 1 "Descargar actualizaciones del git (Hacer pull)" 2 "Subir actualizaciones al git (Hacer push)" 3 "Descargar un nuevo git (Hacer clone)" 4 "Cambiar de branch/rama (Hacer checkout)"`
gitopt=`dialog --stdout --nocancel --scrollbar --menu "Odiwhan, git simple" 0 0 6 p "Descargar actualizaciones del git (Hacer pull)" s "Subir actualizaciones al git (Hacer push)" c "Descargar un nuevo git (Hacer clone)" b "Cambiar de branch/rama (Hacer checkout)"`
case $gitopt in
1) git pull;;
2) commit=`dialog --stdout --inputbox "Cambios (texto commit)" 10 50`
"p") git pull;;
"s") commit=`dialog --stdout --inputbox "Cambios (texto commit)" 10 50`
if [[ -z $commit ]];then
commit="changes"
fi
git add . && git commit -m "$commit" && git push
;;
3)
"c")
giturl=`dialog --stdout --inputbox "URL del git" 10 60`
git clone $giturl
;;
4)
"b")
gitbranch=`dialog --stdout --inputbox "Nueva rama/branch" 10 60`
git checkout $gitbranch
;;