git2git

command module
v0.0.5-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: MIT Imports: 12 Imported by: 0

README

Pre-Release

The intention of this is app is to eventually allow the synchronization of git repositories between GitHub, GitLab, BitBucket, and others.

How To Use

  • Download appropriate binary for your OS
  • Generate GitLab token with X permissions
  • Generate GitHub token with X permissions
  • git2git --target-token 1234 --origin-token 5678 --target gitlab --origin github

Supported Flags

  • --target-token
  • --origin-token
  • --target (gitlab,github)
  • --origin (gitlab,github)

Latest Release

Supports sync of all branches for (github -> gitlab) (gitlab -> github) (github -> github) (gitlab -> gitlab).

Some caveats:

Only copies repositories that aren't empty. Only copies repositories that don't have same-named repositories in . Only copies git history. Issues and other metadata aren't copied.

Warning: Do not try this if you have repositories in the target that have the same name as the ones you're trying to sync.

Milestones

  • Copy all owned, private repositories from GitLab to GitHub
  • Copy all owned, private repositories from GitHub to GitLab
  • Copy all owned, private repositories from GitLab to GitLab
  • Copy all owned, private repositories from GitHub to GitHub
  • Synchronize latest changes from repositories to the next
  • Interactive mode where repositories can be selected
  • Add support for additional flags (archived, public, private, ... repositories)
  • Add support for other git hosting environments
  • Schedule Syncronization
  • Copy issues w/ content from one project to another
  • Zip up repositories and copy to backup location (Google Drive, etc)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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