fix(aliases): update gbackup alias to handle upstream push errors gracefully
This commit is contained in:
@@ -2,15 +2,16 @@ Host ru-vps
|
||||
HostName 157.22.231.198
|
||||
Port 3422
|
||||
User ada
|
||||
Port 3422
|
||||
ServerAliveInterval 30
|
||||
ServerAliveCountMax 3
|
||||
IdentityFile /home/ada/.dotfiles/ssh/.ssh/keys/homelab_ssh.pub
|
||||
IdentityFile /home/ada/.ssh/id_ed25519_homelab
|
||||
|
||||
Host fl-vps
|
||||
HostName 89.167.32.245
|
||||
Port 4322
|
||||
User ada
|
||||
IdentityFile /home/ada/.dotfiles/ssh/.ssh/keys/fl-vpn.pub
|
||||
IdentityFile /home/ada/.ssh/id_ed25519_flvpn
|
||||
ProxyJump ru-vps
|
||||
ServerAliveInterval 30
|
||||
ServerAliveCountMax 3
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user