.
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 gcm="git commit -m"
|
||||||
alias gpu="git push --recurse-submodule=on-demand"
|
alias gpu="git push --recurse-submodule=on-demand"
|
||||||
gsu() {
|
gsu() {
|
||||||
echo_info "-- pulling submodules --"
|
|
||||||
git submodule foreach git pull --recurse-submodule
|
git submodule foreach git pull --recurse-submodule
|
||||||
echo_info "-- updating submodules --"
|
echo_info "-- pulled submodules --"
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
|
echo_info "-- updated submodules --"
|
||||||
git diff . &&
|
git diff . &&
|
||||||
git add .
|
git add .
|
||||||
sleep 0.3
|
sleep 0.3
|
||||||
git commit -m " update: submodules"
|
git commit -m " update: submodules"
|
||||||
git push
|
git push &&
|
||||||
|
echo_info "push successfull"
|
||||||
|
|
||||||
|
error_log
|
||||||
}
|
}
|
||||||
if command_exists lazygit; then
|
if command_exists lazygit; then
|
||||||
alias lg="lazygit"
|
alias lg="lazygit"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue