From a57b96b4b9045dd0976c61fc4262a5c2213cd960 Mon Sep 17 00:00:00 2001 From: JoseluCross Date: Tue, 28 Jun 2016 16:36:28 +0200 Subject: [PATCH] Update gitdit --- jka-toolkit/gitdit | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jka-toolkit/gitdit b/jka-toolkit/gitdit index 3563542..b3c7aa5 100755 --- a/jka-toolkit/gitdit +++ b/jka-toolkit/gitdit @@ -1,14 +1,13 @@ #!/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" ")" case $gitopt in - "p") git pull $actual;; + "p") git pull origin $(git branch --list | grep "^*" | cut -f1 -d" ");; "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 $actual + git add . && git commit -m "$commit" && git push origin $(git branch --list | grep "^*" | cut -f1 -d" ") ;; "c") giturl=`dialog --stdout --inputbox "URL del git" 10 60`