gh-select

Action menu

Every action offered for a repository, and which ones depend on whether it is cloned or yours.

View as Markdown

enter on a repository opens its action menu. The rows are numbered, and pressing a number runs that row. The menu is built per repository, so the numbers change with the entries on offer. With --print-path, enter skips the menu.

Rows

GroupRowWhat it does
1Clonethe full repository. Offered when it is not cloned
1Clone & openclone, then open the folder in your editor. Offered when it is not cloned
1Open in editoropen the local clone. Offered when it is cloned
1Pullgit pull --ff-only in the local clone. Offered when it is cloned
2Clone againa second, separate copy. Offered when it is cloned
2Clone branch…pick a branch or tag, then clone with --branch
2Browse files…the tree browser
2View READMEthe repository's README, rendered in the terminal
2Releases…notes and asset downloads
3Copy nameowner/repo to the clipboard
3Copy URLthe https link to the clipboard
3Open in browserthe repository page on github.com
4Delete repository…deletes it on GitHub. Only for repositories you own

Groups are separated by a blank line.

Clone branch

Opens a picker of the repository's branches and tags, with tags marked. Type to search, enter to clone that ref with git clone --branch REF, esc to go back.

View README

Asks GitHub which file is the README, so docs/README.md, .github/README.md and odd casing all work. It is rendered with the active theme.

After the screen closes

Clone, pull, editor, copy and open actions run after the screen has closed, so their output prints in your normal terminal. Pull prints Pulling PATH…, and a clone prints Cloning OWNER/REPO → TARGET… on stderr, with the branch when there is one.

The details panel next to the menu shows access, fork parent, language, stars, last push, license, size and local path. On a narrow terminal the summary moves into the menu panel.

Edit this page on GitHub

Last updated on

On this page