alias: changed to function gsu
This commit is contained in:
parent
2452428ab5
commit
ef0002ba01
1 changed files with 12 additions and 1 deletions
13
.zshrc
13
.zshrc
|
@ -337,9 +337,20 @@ __alias__() {
|
|||
alias ga="gd $1 && git add"
|
||||
alias gp="git pull --recurse-submodule"
|
||||
alias gms='git maintenance start'
|
||||
alias gsu="git submodule foreach git pull && git submodule update --init --recursive && git add . && git commit -m ' update: submodules' && echo '-- Committed changes, pushing now..' && sleep 1 && git push"
|
||||
# alias gsu="git submodule foreach git pull && git submodule update --init --recursive && git add . && git commit -m ' update: submodules' && echo '-- Committed changes, pushing now..' && sleep 1 && git push"
|
||||
alias gcm="git commit -m"
|
||||
alias gpu="git push --recurse-submodule=on-demand"
|
||||
gsu() {
|
||||
git submodule foreach git pull --recurse-submodule
|
||||
echo_info "-- pulled down submodules --"
|
||||
git submodule update --init --recursive
|
||||
echo_info "-- updates submodules --"
|
||||
git diff . &&
|
||||
git add .
|
||||
sleep 0.3
|
||||
git commit -m " update: submodules"
|
||||
git push
|
||||
}
|
||||
if command_exists lazygit; then
|
||||
alias lg="lazygit"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue