Back to Navi

The repo subcommands of navi

docs/usage/commands/repo/README.md

2.24.01.6 KB
Original Source

The repo subcommands of navi

<!-- TOC --> <!-- TOC -->

Commands Reference

CommandDescription
addLets you import a cheatsheet repository
browserLets you browse through a curated list of cheatsheet repositories

Browsing through cheatsheet repositories

Navi lets you browse featured GitHub repositories registered in @denisidoro/cheats/featured_repos.txt.

You can find them within navi with the following command:

sh
navi repo browse

Importing cheatsheet repositories

You can import cheatsheet repositories using a working git-clone format.
This includes using an HTTPS URL or an SSH URI.

  • Import using HTTPS

    sh
    navi repo add https://github.com/denisidoro/cheats
    
  • Import using SSH

    shell
    navi repo add [email protected]:denisidoro/cheats
    

[!CAUTION] Despite $NAVI_PATH being set, it will not be used when installing cheat sheets directly via navi's own commands.
For example when running navi add repo <repo>, the default paths will still be used.

To avoid this, you may simply clone repos via a regular git clone command, directly into $NAVI_PATH.