bash: gcm
This commit is contained in:
parent
ef2150c011
commit
d2701556e9
1 changed files with 7 additions and 2 deletions
|
@ -156,8 +156,13 @@ function ssh {
|
|||
fi
|
||||
}
|
||||
function gcm {
|
||||
# übergibt alle argumente an git commit -m als commit nachricht
|
||||
git commit -m "$*"
|
||||
if [ -z "$1" ]; then
|
||||
echo "Commit-Message fehlt, setze Default-Message..."
|
||||
git commit -m "changed Files: $(git diff --name-only --staged)"
|
||||
else
|
||||
# übergibt alle argumente an git commit -m als commit nachricht
|
||||
git commit -m "$*"
|
||||
fi
|
||||
}
|
||||
function gc {
|
||||
case "$1" in
|
||||
|
|
Loading…
Reference in a new issue