8 lines
257 B
Bash
Executable file
8 lines
257 B
Bash
Executable file
#!/bin/bash
|
|
if [ -z "$1" ]; then
|
|
echo "Commit-Message fehlt, setze Default-Message..."
|
|
git commit -s -m "changed Files: $(git diff --name-only --staged)"
|
|
else
|
|
# übergibt alle argumente an git commit -m als commit nachricht
|
|
git commit -s -m "$*"
|
|
fi
|