Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 901 Bytes

README.md

File metadata and controls

58 lines (42 loc) · 901 Bytes

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)
: