mirror of
https://gitlab.com/JKANetwork/jka-toolkit.git
synced 2026-03-02 00:43:47 +01:00
odiwhan
This commit is contained in:
21
jka-toolkit/odiwhan
Executable file
21
jka-toolkit/odiwhan
Executable file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/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)"`
|
||||||
|
|
||||||
|
case $gitopt in
|
||||||
|
1) git pull;;
|
||||||
|
2) 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)
|
||||||
|
giturl=`dialog --stdout --inputbox "URL del git" 10 60`
|
||||||
|
git clone $giturl
|
||||||
|
;;
|
||||||
|
4)
|
||||||
|
gitbranch=`dialog --stdout --inputbox "Nueva rama/branch" 10 60`
|
||||||
|
git checkout $gitbranch
|
||||||
|
;;
|
||||||
|
|
||||||
|
esac
|
||||||
Reference in New Issue
Block a user