mirror of
https://gitlab.com/JKANetwork/jka-toolkit.git
synced 2026-02-26 06:53:48 +01:00
gitdit final update
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
VERSION="0.2.0"
|
VERSION="0.2.0"
|
||||||
gitopt=`dialog --stdout --scrollbar --menu "gitdit - Git DIalog inTerface" 0 0 6 p "Descargar actualizaciones del git (Hacer pull)" t "Confirmar cambios sin subida" s "Subir actualizaciones al git (Hacer push)" c "Descargar un nuevo git (Hacer clone)" n "Crear nueva rama" b "Cambiar de branch/rama (Hacer checkout)" m "Unir ramas (Hacer merge)"`
|
gitopt=`dialog --stdout --scrollbar --menu "gitdit - Git DIalog inTerface" 0 0 6 p "Descargar actualizaciones del git (Hacer pull)" t "Confirmar cambios sin subida" s "Subir actualizaciones al git (Hacer push)" c "Descargar un nuevo git (Hacer clone)" n "Crear nueva rama" b "Cambiar de branch/rama (Hacer checkout)" m "Unir ramas (Hacer merge a la rama actual)"`
|
||||||
actual="origin $(git branch --list | grep "^*" | cut -f2 -d" ")"
|
actual="origin $(git branch --list | grep "^*" | cut -f2 -d" ")"
|
||||||
case $gitopt in
|
case $gitopt in
|
||||||
"p") git pull $actual;;
|
"p") git pull $actual;;
|
||||||
@@ -54,7 +54,7 @@ case $gitopt in
|
|||||||
let j++
|
let j++
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
merges=`dialog --stdout --scrollbar --menu "Selecione la rama a unir" 0 0 6 $rama`
|
merges=`dialog --stdout --scrollbar --menu "Selecione la rama a unir a $(git branch --list | grep "^*" | cut -f2 -d" ")" 0 0 6 $rama`
|
||||||
if [ ! -z $merges ];then
|
if [ ! -z $merges ];then
|
||||||
git merge ${lista[$merges]}
|
git merge ${lista[$merges]}
|
||||||
git push
|
git push
|
||||||
|
|||||||
Reference in New Issue
Block a user