about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2022-10-22 14:49:51 +0100
committerDavid Morgan <djm_uk@protonmail.com>2022-10-22 14:49:51 +0100
commit3e0e6d5518af1bb1894625427541d6b040e4d4d5 (patch)
treefe8a6080d803a5dfba2ecb229640a38b67f5e7f1
parentfa96356b1ece3788f13bf4b5729ac35036372069 (diff)
downloaddotfiles-3e0e6d5518af1bb1894625427541d6b040e4d4d5.tar.gz
Add setup-remotes script
-rw-r--r--setup-remotes.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/setup-remotes.sh b/setup-remotes.sh
new file mode 100644
index 0000000..b25797a
--- /dev/null
+++ b/setup-remotes.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+git remote add sourcehut git@git.sr.ht:~djm/dotfiles
+git remote add codeberg git@codeberg.org:djm/dotfiles.git
+git remote add tildegit git@tildegit.org:djm/dotfiles.git
+git remote add tilde.institute djm@tilde.institute:public_repos/dotfiles
+git remote add github git@github.com:deejayem/dotfiles.git
+
+for i in `git remote -v | grep -v origin|awk '{print $2}' | uniq`; do git remote set-url --add --push origin $i ; done
+