From 2d3d61836ce13ed2e1f50041a2f09e3cc41ed6f5 Mon Sep 17 00:00:00 2001 From: simono41 Date: Fri, 20 Mar 2020 14:37:57 +0100 Subject: [PATCH] new_git-commands --- sgit | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sgit b/sgit index 53c1933..49c0985 100755 --- a/sgit +++ b/sgit @@ -28,13 +28,13 @@ git status git add --all git commit --all -m "${2}" git show -if ! GIT_SSH_COMMAND="ssh -oPort=1022" git pull "${push}" "${branch}"; then +if ! git pull "${push}" "${branch}"; then echo "Konnte keine neuen Daten vom Server hollen!!!" fi -if ! GIT_SSH_COMMAND="ssh -oPort=1022" git push --set-upstream "${push}" "${branch}"; then +if ! git push --set-upstream "${push}" "${branch}"; then echo "Konnte keine neuen Daten zum Server pushen!!!" fi git status -if ! GIT_SSH_COMMAND="ssh -oPort=1022" git pull "${push}" "${branch}"; then +if ! git pull "${push}" "${branch}"; then echo "Konnte keine neuen Daten vom Server hollen!!!" fi