0.1.5 • Published 5 months ago

repom v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

repom

CLI for manager git repositories easily, Inspiration by projj

NPM version GitHub Action Status

Overview

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.

Install

npm install -g repom

Usage

Initialize

repom init

init screen shot

Set base directory which repositories will be cloned to, default ~/Users/Documents/Code.

You can change base directory in ~/.repom/config.json.

Add repository

repom add https://github.com/lhz960904/repom.git

add screen shot

You can add -o option if you register code command, will auto open repo by VSCode

Remove repository

repom remove <name>

remove screen shot

Support fuzzy match. Multiple selections can be made if multiple matches are found

Find repository

repom find <name>

remove screen shot

You can add -o option if you register code command, will auto open repo by VSCode

🚨 Clean up exist dircatory

the command will clean up existed directories to base dir, can't roll back .

repom clean-up <dir>

clean up screen shot

Config

  • baseDir : Repositories will be cloned to, default ~/Users/Documents/Code.
  • groupBy : Group according to the following option
    • source : git remote url. e.g. https://github.com/lhz960904/repom.git match to github.com
    • owner : repository owner. e.g. https://github.com/lhz960904/repom.git match to lhz960904