bugfixed the git aliase
This commit is contained in:
parent
7a7977706e
commit
a910ed3d33
1 changed files with 15 additions and 3 deletions
18
.zshrc
18
.zshrc
|
@ -335,13 +335,25 @@ drweb() {
|
|||
alias gm='git checkout main && git merge'
|
||||
alias gc="git clone --recurse-submodule"
|
||||
gcl() {
|
||||
git clone --depth=1 "https://github.com/$1"
|
||||
if [ -z "$2" ]; then
|
||||
git clone --depth=1 "https://github.com/$1"
|
||||
else
|
||||
git clone --depth=1 "https://github.com/$1" "$2"
|
||||
fi
|
||||
}
|
||||
gck() {
|
||||
git clone --recurse-submodules --depth=1 "https://git.k4li.de/$1"
|
||||
if [ -z "$2" ]; then
|
||||
git clone --recurse-submodules --depth=1 "https://git.k4li.de/$1"
|
||||
else
|
||||
git clone --recurse-submodules --depth=1 "https://git.k4li.de/$1" "$2"
|
||||
fi
|
||||
}
|
||||
gcs() {
|
||||
git clone --recurse-submodules --depth=1 "git@git.k4li.de:$1"
|
||||
if [ -z "$2" ]; then
|
||||
git clone --recurse-submodules --depth=1 "git@git.k4li.de:$1"
|
||||
else
|
||||
git clone --recurse-submodules --depth=1 "git@git.k4li.de:$1" "$2"
|
||||
fi
|
||||
}
|
||||
alias gd="git diff"
|
||||
alias ga="gd $1 && git add"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue