mirror of
https://gitlab.com/JKANetwork/jka-toolkit.git
synced 2026-02-24 05:53:48 +01:00
odiwhan
This commit is contained in:
@@ -1,19 +1,19 @@
|
|||||||
#!/bin/bash
|
#!/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
|
case $gitopt in
|
||||||
1) git pull;;
|
"p") git pull;;
|
||||||
2) commit=`dialog --stdout --inputbox "Cambios (texto commit)" 10 50`
|
"s") commit=`dialog --stdout --inputbox "Cambios (texto commit)" 10 50`
|
||||||
if [[ -z $commit ]];then
|
if [[ -z $commit ]];then
|
||||||
commit="changes"
|
commit="changes"
|
||||||
fi
|
fi
|
||||||
git add . && git commit -m "$commit" && git push
|
git add . && git commit -m "$commit" && git push
|
||||||
;;
|
;;
|
||||||
3)
|
"c")
|
||||||
giturl=`dialog --stdout --inputbox "URL del git" 10 60`
|
giturl=`dialog --stdout --inputbox "URL del git" 10 60`
|
||||||
git clone $giturl
|
git clone $giturl
|
||||||
;;
|
;;
|
||||||
4)
|
"b")
|
||||||
gitbranch=`dialog --stdout --inputbox "Nueva rama/branch" 10 60`
|
gitbranch=`dialog --stdout --inputbox "Nueva rama/branch" 10 60`
|
||||||
git checkout $gitbranch
|
git checkout $gitbranch
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user