git-mirror

command module
v0.0.0-...-a0a8496 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 1 Imported by: 0

README

git-mirror an easy tool to mirror all you repos between Gitlab and Github

If there are too many repos on your Gitlab, it's too difficult to migrate or mirror those repos.

I was in the same situation before, to solve this, I wrote an easy tool to mirror all you visible repos between gitlab and github. For example, it will mirror-clone all you visible repos on Gitlab, create repos on your Github account, and mirror-push them.

Gitee is not supported now.

Build

git clone https://github.com/kom0055/git-mirror.git
cd git-mirror
make

Usage

$ git-mirror --help
to clone repo: gclone https://github.com/kom0055/git-mirror
to sync all available repos: gclone --sync-from-remote --remote-type=gh https://github.com

Usage:
  gclone [flags]

Flags:
      --dest-ecdsa string                  ecdsa pem file
      --dest-ecdsa-passwd string           ecdsa pem file passwd
      --dest-proto string                  proto: git, ssh, http or https
      --dest-remote-gitlab-addr string     remote gitlab addr
      --dest-token string                  token or private key
      --dest-user string                   user name
  -h, --help                               help for gclone
      --source-ecdsa string                ecdsa pem file
      --source-ecdsa-passwd string         ecdsa pem file passwd
      --source-proto string                proto: git, ssh, http or https
      --source-remote-gitlab-addr string   remote gitlab addr
      --source-token string                token or private key
      --source-user string                 user name
      --worker int                         worker num (default 8)

Documentation

Overview

Copyright © 2022 Kun <ev.sin@hotmal.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL