From 9af66ff50f18b4ea68564fa6d73cdbefdd11fcbf Mon Sep 17 00:00:00 2001 From: root Date: Mon, 24 Jul 2017 21:14:50 +0200 Subject: [PATCH] fix --- sgit | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/sgit b/sgit index 0d16589..b963512 100755 --- a/sgit +++ b/sgit @@ -2,9 +2,18 @@ set -ex -[ -n $"{1}" ] && git config --global user.email "${1}" +if [[ "--help" == "${1}" ]]; then +echo "bash ./sgit user.email commit" +fi + +if [[ -z "${2}" ]]; then +echo "Bitte commit angeben!!!" +exit 1 +fi + +git config --global user.email "${1}" git add --all -git commit --all -m fix +git commit --all -m "${2}" git push git show git status