2017-07-24 01:11:28 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2017-07-24 21:14:50 +02:00
|
|
|
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}"
|
2017-07-24 01:11:28 +02:00
|
|
|
git add --all
|
2017-07-24 21:14:50 +02:00
|
|
|
git commit --all -m "${2}"
|
2017-07-24 01:11:28 +02:00
|
|
|
git push
|
|
|
|
git show
|
|
|
|
git status
|