shell-scripte-code/sgit
2018-01-19 12:57:13 -05:00

24 lines
418 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 email und commit angeben!!!"
exit 1
fi
git config --global core.editor "nano"
git config --global user.email "${1}"
git config --global user.name "${1}"
git config --global push.default simple
git status
git add --all
git commit --all -m "${2}"
git pull
git show
git push
git status