Skip to content

oboenikui/ghq-migrate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GHQ migrate

DESCRIPTION

Migrate multiple local repositories cloned to a specific directory into a ghq-style directory structure.

REQUIREMENTS

  • yarn
  • Node.js
  • ghq

BUILD

yarn install
yarn build

RUN

bin/ghq-migrate <source path> [destination path]

EXAMPLE

For example, local repositories are stored in the following structure.

Before

$HOME/git
|- repo1 (https://foo.example/user1/repo1.git)
|- repo2 (https://bar.example/user2/repo2.git)
|- repo3 (https://bar.example/user2/repo3.git)
:

Run

bin/ghq-migrate ~/git

After

$HOME/ghq (ghq root path)
|- foo.example
|  |- user1
|     |- repo1 (https://foo.example/user1/repo1.git)
|- bar.example
|  |- user2
|     |- repo2 (https://bar.example/user2/repo2.git)
|     |- repo3 (https://bar.example/user2/repo2.git)
:

About

ghq migration script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published