mirror of
https://gitlab.com/JKANetwork/jka-toolkit.git
synced 2026-02-20 20:11:32 +01:00
odiwhan
This commit is contained in:
@@ -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
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user