CLI for manager git repositories easily, inspired by projj
repom
provide a structure storage repository
.$BASE_DIR
├── github.com (optional)
│ └── vuejs (optional)
│ ├── core
│ └── docs
├── gitlab.com
│ └── owner
│ ├── repoA
│ └── repoB
And you can use command to manager your repositories.
npm install -g repom
repom init
Set base directory which repositories will be cloned to, default ~/Users/Documents/Code
.
You can change base directory in ~/.repom/config.json
.
repom add https://github.com/lhz960904/repom.git
You can add -o
option if you register code
command, will auto open repo by VSCode
repom remove <name>
Support fuzzy match. Multiple selections can be made if multiple matches are found
repom find <name>
You can add -o
option if you register code
command, will auto open repo by VSCode
the command will clean up existed directories to base dir, can't roll back .
repom clean-up <dir>
baseDir
: Repositories will be cloned to, default~/Users/Documents/Code
.groupBy
: Group according to the following optionsource
: git remote url. e.g.https://github.com/lhz960904/repom.git
match github.com
owner
: repository owner. e.g.https://github.com/lhz960904/repom.git
match tolhz960904