aurora/aurora-sharp-desktop/mono.sh
2021-03-05 23:10:12 -05:00

20 lines
679 B
Bash
Executable File

github_org=watsonb8
my_master_repos="aurora-proto aurora-sharp-desktop"
my_develop_repos="aurora-cradle-sharp"
git checkout -b monorepo-migration
for repo in $(echo $my_master_repos); do
git remote add $repo ssh://git@thebword.ddns.net:3122/$github_org/$repo.git
git fetch $repo
git read-tree --prefix=$repo -u $repo/master
git add $src_dir/$repo
git commit -m "Migrated $repo to $src_dir/$repo"
done
for repo in $(echo $my_develop_repos); do
git remote add $repo ssh://git@thebword.ddns.net:3122/$github_org/$repo.git
git fetch $repo
git read-tree --prefix=$repo -u $repo/develop
git add $src_dir/$repo
git commit -m "Migrated $repo to $src_dir/$repo"
done