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