updated sync_to_repo.sh

pull/2/head
Hari Sekhon 5 years ago
parent 0a5e6a9716
commit 90377ddabc

@ -13,9 +13,15 @@
# https://www.linkedin.com/in/harisekhon
#
# Syncs all repos from setup/repolist.txt to one of GitHub / GitLab / BitBucket
# Syncs all adjacent repos from setup/repolist.txt to one of the upstreams GitHub / GitLab / BitBucket
#
# another trick would be to set all 3 to origin to push to all 3 remotes every time
# another trick would be to set the remote origin to contain all 3 URLs so each push goes to all 3 repos every time
#
# eg.
#
# git remote set-url --add origin <url>
#
# git remote set-url --add origin https://bitbucket.org/HariSekhon/DevOps-Bash-tools
set -euo pipefail
[ -n "${DEBUG:-}" ] && set -x

Loading…
Cancel
Save