My shell portfolio begins

This commit is contained in:
2024-12-11 13:01:29 -06:00
parent aaca49937f
commit c2b1b821f7
41 changed files with 1567 additions and 0 deletions

19
gitMirror.sh Normal file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
set -euo pipefail
#A script to setup git mirroring
#Works with aliases
# lpom='git add -A :/ ; git commit -va'
# gpom='git push all master'
# tesla='lpom;gpom'
PRIMARY_TARGET="$1"
SECONDARY_TARGET="$2"
git remote add all $PRIMARY_TARGET
git remote set-url --add --push all $PRIMARY_TARGET
git remote set-url --add --push all $SECONDARY_TARGET