bash: move gcm to scripts

Signed-off-by: Michael Grote <michael.grote@posteo.de>
This commit is contained in:
Michael Grote 2024-06-05 20:21:04 +02:00
parent 79bea1364a
commit fb1e4f6ccd
3 changed files with 9 additions and 9 deletions

View file

@ -48,15 +48,6 @@ function ssh {
tmux rename-window "$(hostname -f)"
fi
}
function gcm {
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
}
function gp {
git pull "$@"
}

1
scripts/gcm Symbolic link
View file

@ -0,0 +1 @@
git_commit

8
scripts/git_commit Executable file
View file

@ -0,0 +1,8 @@
#!/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