less_retarded_wiki/add_git_remotes.sh

20 lines
690 B
Bash
Raw Normal View History

2024-01-07 03:16:15 +01:00
#!/bin/bash
# Adds mirror remotes to a git repot, expects one parameter: the repo name.
echo $1
git remote | xargs -n1 git remote remove # delete all remotes
2024-02-24 19:26:17 +01:00
git remote add origin https://git.coom.tech/drummyfish/$1.git
2024-01-07 03:16:15 +01:00
git remote set-url --add --push origin https://git.coom.tech/drummyfish/$1.git
git remote set-url --add --push origin ssh://tastyfish@192.168.0.106:/home/tastyfish/git/$1
git remote set-url --add --push origin https://git.thisisjoes.site/drummyfish/$1.git
2024-02-24 19:26:17 +01:00
git remote set-url --add --push origin https://basedwa.re/drummfish/$1.git
git remote set-url --add --push origin https://gitea.slowb.ro/drummyfish/$1.git
2024-01-07 03:16:15 +01:00
git remote -v
git push --set-upstream origin master