mirror of
https://gitlab.com/JKANetwork/jka-toolkit.git
synced 2026-02-16 01:51:32 +01:00
Update
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
#!/bin/bash
|
||||
VERSION="0.1.3"
|
||||
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)"`
|
||||
actual="origin $(git branch --list | grep "^*" | cut -f1 -d" ")"
|
||||
echo "$actual"
|
||||
case $gitopt in
|
||||
"p") git pull origin $(git branch --list | grep "^*" | cut -f1 -d" ");;
|
||||
"p") git pull $actual;;
|
||||
"s") commit=`dialog --stdout --inputbox "Cambios (texto commit)" 10 50 "changes"`
|
||||
if [[ -z $commit ]];then
|
||||
commit="changes"
|
||||
fi
|
||||
git add . && git commit -m "$commit" && git push origin $(git branch --list | grep "^*" | cut -f1 -d" ")
|
||||
git add . && git commit -m "$commit" && git push $actual
|
||||
;;
|
||||
"c")
|
||||
giturl=`dialog --stdout --inputbox "URL del git" 10 60`
|
||||
|
||||
Reference in New Issue
Block a user