https://github.com/wingkwong/mass-repo-migrator
🚚🚚🚚 Migrate N git repositories from X to Y in just Z clicks
https://github.com/wingkwong/mass-repo-migrator
Last synced: 6 months ago
JSON representation
🚚🚚🚚 Migrate N git repositories from X to Y in just Z clicks
- Host: GitHub
- URL: https://github.com/wingkwong/mass-repo-migrator
- Owner: wingkwong
- License: mit
- Created: 2021-07-19T15:52:20.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-19T15:54:14.000Z (about 4 years ago)
- Last Synced: 2025-02-16T03:43:21.194Z (8 months ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mass-repo-migrator
Migrate N git repositories from X to Y in just Z clicks## Prerequisites
- git has been installed in your machine
- git credentials for both side have been configured
- A list of source repositories has been prepared
- A list of target repositories has been prepared
- All target repositories must be empty## Usages
- Download ``migrate.sh`` to your local machine
- Update ``source_repositories`` and ``target_repositories``
```bash
# list of source repositories
source_repositories=(
# example: bitbucket as source
"https://bitbucket.org/foo/repo1.git"
"https://bitbucket.org/foo/repo2.git"
"https://bitbucket.org/foo/repo3.git"
"https://bitbucket.org/foo/repo4.git"
)# list of target repositories
target_repositories=(
# example: AWS CodeCommit as target
"https://git-codecommit.ap-southeast-1.amazonaws.com/v1/repos/repo1"
"https://git-codecommit.ap-southeast-1.amazonaws.com/v1/repos/repo2"
"https://git-codecommit.ap-southeast-1.amazonaws.com/v1/repos/repo3"
"https://git-codecommit.ap-southeast-1.amazonaws.com/v1/repos/repo4"
)
```
- Run the script
```
$ chmod +x ./migrate.sh
$ ./migrate.sh
```