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
|
||||
git commit -m "$*"
|
||||
}
|
||||
function gcb {
|
||||
# git checkout -b lokalername origin/remotename
|
||||
git checkout -b $1 origin/$1
|
||||
function gc {
|
||||
case "$1" in
|
||||
--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 gd="git diff"
|
||||
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"
|
||||
# vim
|
||||
alias v="view"
|
||||
|
|
Loading…
Reference in a new issue