mirror of
https://github.com/denisidoro/navi.git
synced 2026-01-23 02:14:19 +00:00
Moves entries from the cheatsheet/repositories article to the usage/commands/repo article
Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>
This commit is contained in:
parent
a01b892ec4
commit
3f4726a091
2 changed files with 32 additions and 28 deletions
|
|
@ -1,12 +1,8 @@
|
|||
# Cheatsheet repositories
|
||||
|
||||
## Table of contents
|
||||
|
||||
<!-- TOC -->
|
||||
* [Cheatsheet repositories](#cheatsheet-repositories)
|
||||
* [Table of contents](#table-of-contents)
|
||||
* [About](#about)
|
||||
* [Browsing through cheatsheet repositories](#browsing-through-cheatsheet-repositories)
|
||||
* [Importing cheatsheet repositories](#importing-cheatsheet-repositories)
|
||||
* [Submitting cheatsheets](#submitting-cheatsheets)
|
||||
* [Auto-updating repositories](#auto-updating-repositories)
|
||||
|
|
@ -19,32 +15,10 @@ and mainly consists of `.cheat` files.
|
|||
|
||||
This page is dedicated to the information you might need to work with `cheatsheet repositories`.
|
||||
|
||||
## Browsing through cheatsheet repositories
|
||||
|
||||
Navi lets you browse featured [GitHub](https://github.com) repositories registered in [@denisidoro/cheats/featured_repos.txt](https://github.com/denisidoro/cheats/blob/master/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 git@github.com:denisidoro/cheats
|
||||
```
|
||||
You can import `cheatsheet repositories` with the `repo add` subcommand.\
|
||||
See [/docs/usage/commands/repo](/docs/usage/commands/repo/README.md#importing-cheatsheet-repositories) for more details.
|
||||
|
||||
## Submitting cheatsheets
|
||||
|
||||
|
|
|
|||
30
docs/usage/commands/repo/README.md
Normal file
30
docs/usage/commands/repo/README.md
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# The repo subcommands of navi
|
||||
|
||||
## Browsing through cheatsheet repositories
|
||||
|
||||
Navi lets you browse featured [GitHub](https://github.com) repositories registered in [@denisidoro/cheats/featured_repos.txt](https://github.com/denisidoro/cheats/blob/master/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 git@github.com:denisidoro/cheats
|
||||
```
|
||||
|
||||
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 as per the `directories-next` package will still be used. To avoid this, you may simply clone repos via a regular `git clone` command, directly into `$NAVI_PATH`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue