bash: move gcm to scripts
Signed-off-by: Michael Grote <michael.grote@posteo.de>
This commit is contained in:
parent
79bea1364a
commit
fb1e4f6ccd
3 changed files with 9 additions and 9 deletions
|
@ -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
1
scripts/gcm
Symbolic link
|
@ -0,0 +1 @@
|
|||
git_commit
|
8
scripts/git_commit
Executable file
8
scripts/git_commit
Executable 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
|
Loading…
Reference in a new issue