fix(aliases): update gbackup alias to handle upstream push errors gracefully

This commit is contained in:
Dmitry
2026-03-24 20:25:56 +03:00
parent 07dfb2136f
commit a542a34c32
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -174,3 +174,4 @@ alias sshvpn='sshuttle --dns -r fl-vps 0/0 -X ~/.dotfiles/configs/.exclude-ip.tx
alias sshp-fg='ssh -D 127.0.0.1:1080 fl-vps -v sleep 9999'
alias gbackup='git add . && git commit -m "backup: $(date +"%Y-%m-%d %H:%M")" && git push && git push upstream'
alias gbackup='git add . && git commit -m "backup: $(date +"%Y-%m-%d %H:%M")" && git push && git remote get-url upstream &>/dev/null && git push upstream || true'