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
|
fi
|
||||||
}
|
}
|
||||||
function gcm {
|
function gcm {
|
||||||
|
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
|
# übergibt alle argumente an git commit -m als commit nachricht
|
||||||
git commit -m "$*"
|
git commit -m "$*"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
function gc {
|
function gc {
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
|
Loading…
Reference in a new issue