From 0b1a3373331cc77cfdb9e693a59746a0d7539e1b Mon Sep 17 00:00:00 2001 From: simono41 Date: Mon, 3 Sep 2018 01:06:28 +0200 Subject: [PATCH] new-sgit --- sgit | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sgit b/sgit index 2398471..160f5ba 100755 --- a/sgit +++ b/sgit @@ -14,6 +14,9 @@ fi push="${3}" [[ -z "${push}" ]] && push="origin" +branch="${4}" +[[ -z "${branch}" ]] && branch="master" + git config --global core.editor "nano" git config --global user.email "${1}" git config --global user.name "${1}" @@ -23,5 +26,5 @@ git add --all git commit --all -m "${2}" git pull git show -git push "${push}" +git push "${push}" "${branch}" git status