diff options
Diffstat (limited to '.local/bin/development/gitpush')
-rwxr-xr-x | .local/bin/development/gitpush | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.local/bin/development/gitpush b/.local/bin/development/gitpush new file mode 100755 index 0000000..97aa43b --- /dev/null +++ b/.local/bin/development/gitpush @@ -0,0 +1,10 @@ +#!/bin/sh + +case "$(git config --get remote.origin.url)" in + *csstudent41*) sshadd ~/.ssh/github.com_id_ed25519 ;; + *labstudent41*) sshadd ~/.ssh/labstudent41_id_ed25519 ;; +esac + +git add --all +git commit # --allow-empty-message +git push -u origin |