Skip to content

Commit

Permalink
Add remote delete and remote reset subcommands.
Browse files Browse the repository at this point in the history
refs gh-41
  • Loading branch information
xwmx committed May 12, 2021
1 parent 8ce0196 commit 2a89796
Show file tree
Hide file tree
Showing 6 changed files with 2,537 additions and 68 deletions.
7 changes: 6 additions & 1 deletion README.md
Expand Up @@ -4729,7 +4729,7 @@ Subcommands:
peek View a note, bookmarked web page, or notebook in the terminal.
pin Pin an item so it appears first in lists.
plugins Install and uninstall plugins and themes.
remote Get, set, and remove the remote URL for the notebook.
remote Configure the remote URL and branch for the notebook.
run Run shell commands within the current notebook.
search Search notes.
settings Edit configuration settings.
Expand Down Expand Up @@ -6106,17 +6106,22 @@ See Also:
Usage:
nb remote
nb remote branches [<url>]
nb remote delete <branch-name>
nb remote remove
nb remote rename [<branch-name>] <name>
nb remote reset <branch-name>
nb remote set <url> [<branch>]

Subcommands:
(default) Print the remote URL and branch for the notebook.
branches List branches on the current or given remote.
delete Delete <branch-name> from the remote.
Caveat: only orphan branches can be deleted.
remove Remove the remote URL from the notebook.
Alias: `unset`
rename Rename the current orphan branch or <branch-name> to <name>.
Caveat: only orphan branches can be renamed.
delete Reset <branch-name> on the remote to a blank initial state.
set Set the remote URL and branch for the notebook.

Description:
Expand Down
7 changes: 6 additions & 1 deletion docs/index.markdown
Expand Up @@ -4735,7 +4735,7 @@ Subcommands:
peek View a note, bookmarked web page, or notebook in the terminal.
pin Pin an item so it appears first in lists.
plugins Install and uninstall plugins and themes.
remote Get, set, and remove the remote URL for the notebook.
remote Configure the remote URL and branch for the notebook.
run Run shell commands within the current notebook.
search Search notes.
settings Edit configuration settings.
Expand Down Expand Up @@ -6112,17 +6112,22 @@ See Also:
Usage:
nb remote
nb remote branches [<url>]
nb remote delete <branch-name>
nb remote remove
nb remote rename [<branch-name>] <name>
nb remote reset <branch-name>
nb remote set <url> [<branch>]

Subcommands:
(default) Print the remote URL and branch for the notebook.
branches List branches on the current or given remote.
delete Delete <branch-name> from the remote.
Caveat: only orphan branches can be deleted.
remove Remove the remote URL from the notebook.
Alias: `unset`
rename Rename the current orphan branch or <branch-name> to <name>.
Caveat: only orphan branches can be renamed.
delete Reset <branch-name> on the remote to a blank initial state.
set Set the remote URL and branch for the notebook.

Description:
Expand Down

0 comments on commit 2a89796

Please sign in to comment.