From 9d74dfb77ee35f96d6de7056acc8c9b1a728ced2 Mon Sep 17 00:00:00 2001 From: simono41 Date: Sat, 17 Feb 2018 16:55:56 +0100 Subject: [PATCH] fix --- SimpleHTTPServerWithUpload.py | 0 sgit | 5 ++++- 2 files changed, 4 insertions(+), 1 deletion(-) mode change 100644 => 100755 SimpleHTTPServerWithUpload.py diff --git a/SimpleHTTPServerWithUpload.py b/SimpleHTTPServerWithUpload.py old mode 100644 new mode 100755 diff --git a/sgit b/sgit index 09a5c73..2398471 100755 --- a/sgit +++ b/sgit @@ -11,6 +11,9 @@ echo "Bitte email und commit angeben!!!" exit 1 fi +push="${3}" +[[ -z "${push}" ]] && push="origin" + git config --global core.editor "nano" git config --global user.email "${1}" git config --global user.name "${1}" @@ -20,5 +23,5 @@ git add --all git commit --all -m "${2}" git pull git show -git push "${3}" +git push "${push}" git status