.
This commit is contained in:
parent
50c235426d
commit
a1e6763a31
1 changed files with 6 additions and 3 deletions
9
.zshrc
9
.zshrc
|
@ -341,15 +341,18 @@ __alias__() {
|
|||
alias gcm="git commit -m"
|
||||
alias gpu="git push --recurse-submodule=on-demand"
|
||||
gsu() {
|
||||
echo_info "-- pulling submodules --"
|
||||
git submodule foreach git pull --recurse-submodule
|
||||
echo_info "-- updating submodules --"
|
||||
echo_info "-- pulled submodules --"
|
||||
git submodule update --init --recursive
|
||||
echo_info "-- updated submodules --"
|
||||
git diff . &&
|
||||
git add .
|
||||
sleep 0.3
|
||||
git commit -m " update: submodules"
|
||||
git push
|
||||
git push &&
|
||||
echo_info "push successfull"
|
||||
|
||||
error_log
|
||||
}
|
||||
if command_exists lazygit; then
|
||||
alias lg="lazygit"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue