enhance gcm

This commit is contained in:
Michael Grote 2023-01-19 15:29:17 +01:00
parent 46101abbd9
commit a45ddd63c5

View file

@ -150,10 +150,10 @@ function ssh {
function gcm {
if [ -z "$1" ]; then
echo "Commit-Message fehlt, setze Default-Message..."
git commit -m "changed Files: $(git diff --name-only --staged)"
git commit -s -m "changed Files: $(git diff --name-only --staged)"
else
# übergibt alle argumente an git commit -m als commit nachricht
git commit -m "$*"
git commit -s -m "$*"
fi
}
function gc {