Skip to content

lhz960904/repom

Repository files navigation

repom

CLI for manager git repositories easily, inspired 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

About

CLI for manager repositories. configurable, interactive.

Resources

Stars

Watchers

Forks

Packages

No packages published