shell-scripte-code/sgit
2017-07-24 21:14:50 +02:00

19 lines
272 B
Bash
Executable file

#!/bin/bash
set -ex
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 "${2}"
git push
git show
git status