bash: gc umgebaut
This commit is contained in:
parent
f77ccf6f3d
commit
a2af7db0ef
1 changed files with 13 additions and 4 deletions
17
.bash_extra
17
.bash_extra
|
@ -134,9 +134,19 @@ function gcm {
|
||||||
# ü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 "$*"
|
||||||
}
|
}
|
||||||
function gcb {
|
function gc {
|
||||||
# git checkout -b lokalername origin/remotename
|
case "$1" in
|
||||||
git checkout -b $1 origin/$1
|
--help)
|
||||||
|
echo "git checkout <branch>"
|
||||||
|
echo "versucht erst einen lokalen checkout, danach von dem Remote-Repository"
|
||||||
|
echo "gc <branch>"
|
||||||
|
;;
|
||||||
|
"")
|
||||||
|
echo "Branch fehlt..."
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
git checkout $1 || git checkout -b $1 origin/$1
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -164,7 +174,6 @@ alias glast="git log -1 HEAD --stat"
|
||||||
alias gsp="git stage -p"
|
alias gsp="git stage -p"
|
||||||
alias gd="git diff"
|
alias gd="git diff"
|
||||||
alias gs="git status"
|
alias gs="git status"
|
||||||
alias gc="git checkout"
|
|
||||||
alias glogs="git log --all --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
|
alias glogs="git log --all --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
|
||||||
# vim
|
# vim
|
||||||
alias v="view"
|
alias v="view"
|
||||||
|
|
Loading…
Reference in a new issue