diff --git a/README.md b/README.md index 058dc04..ea5a9de 100644 --- a/README.md +++ b/README.md @@ -1 +1,8 @@ # migrate + +find a list of git repo urls +add them to a list in a file +sync between installs, push and pull the list +allow cloning of all repos + + diff --git a/migrate.sh b/migrate.sh new file mode 100755 index 0000000..95ce9e5 --- /dev/null +++ b/migrate.sh @@ -0,0 +1,9 @@ +#!/usr/bin/bash + +#program should retrieve a list of installed packages and cloned repos, add them to a list and allow the syncing of them between installs, will be for arch so pacman package manager to install packages. Of course git will be used for the syncing of repos + + +#thanks to SBRL for this handy git repo url finder +find /home/ctome/git/ -mount -type d -name '.git' -print0 | xargs -0 -I {} bash -c 'dirgit="{}"; dir="$(dirname "${dirgit}")"; cd "${dir}" && echo -e "$(git remote -v | tr " " "\t" | cut -f 2 | head -n1)";' |grep .com > repos.txt && mkdir -p repos; + +cd repos && cat ../repos.txt |xargs -0 git clone; diff --git a/repos.txt b/repos.txt new file mode 100644 index 0000000..0660ccc --- /dev/null +++ b/repos.txt @@ -0,0 +1,17 @@ +git@github.com:University-of-Hull-CST/441101-2122-lab-10-CrimsonTome +git@github.com:CrimsonTome/PD-report.git +git@github.com:CrimsonTome/PD-personal-report.git +git@github.com:chrrel/latex-report-template +https://git.starbeamrainbowlabs.com/Demos/latex-templates +git@github.com:chrrel/latex-report-template +git@github.com:CrimsonTome/AOSC-report +git@github.com:University-of-Hull-CST/441101-2122-t2-lab2-CrimsonTome.git +git@github.com:University-of-Hull-CST/441101-2122-lab-7-CrimsonTome +git@github.com:CrimsonTome/crimsontome-blog.git +git@github.com:CrimsonTome/FreesideWeb +git@github.com:dylanaraps/pure-bash-bible +git@github.com:CrimsonTome/migrate.git +git@github.com:CrimsonTome/StudentResources +git@github.com:CrimsonTome/config.git +git@github.com:CrimsonTome/templ +git@github.com:solokeys/solo-python