https://github.com/dalee/git-mirror
Small and fast utility to mirror git repositories
https://github.com/dalee/git-mirror
git git-mirror
Last synced: 8 months ago
JSON representation
Small and fast utility to mirror git repositories
- Host: GitHub
- URL: https://github.com/dalee/git-mirror
- Owner: Dalee
- License: mit
- Created: 2017-09-26T20:16:43.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-01-15T20:08:24.000Z (almost 7 years ago)
- Last Synced: 2024-06-20T15:26:33.158Z (over 1 year ago)
- Topics: git, git-mirror
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fast bulk git repository mirroring
[](https://travis-ci.org/Dalee/git-mirror)
[](https://goreportcard.com/report/github.com/Dalee/git-mirror)
Small and fast utility to mirror git repositories.
## Usage
Make sure all repositories are reachable via `git` command-line utility
Create file `repository_list.json` with following content:
```json
[
{
"server1": "git@server1.example.com:path/repo1.git",
"server2": "https://server2.example.com/another_path/repo1.git"
},
{
"server1": "git@server1.example.com:path/repo2.git",
"server2": "https://server2.example.com/another_path/repo2.git"
}
]
```
Perform mirroring:
```bash
git-mirror \
-cacheDir=/path/to/cache -concurrency=10 \
repository_list.json \
server1 server2
```
All repositories from `server1` key, will be mirrored to repositories of `server2`.
If `cacheDir` is not provided, repositories will be cloned to a temporary location and
will be removed up after mirroring.
`concurrency` flag allows to tune number of parallel workers.
## License
Software licensed under the [MIT License](http://www.opensource.org/licenses/MIT).