Forrest logo
back to the gh tool

gh-repo:tldr:fc8d3

gh-repo: List only non-forks repositories.
$ gh repo list ${owner} --non-forks
try on your machine

This command is using the GitHub CLI (gh) to list the repositories of a specific owner on GitHub while excluding forked repositories.

Here's a breakdown of the command:

  • gh: GitHub CLI command-line interface.
  • repo list: Subcommand to list repositories.
  • ${owner}: A placeholder variable representing the owner of the repositories. You need to replace ${owner} with the actual username or organization whose repositories you want to list. For example, if the owner is "github", you would replace ${owner} with github.
  • --non-forks: This flag is used to filter the result and exclude forked repositories. It instructs the command to only display non-forked repositories owned by the specified owner.

Overall, the command will fetch and display a list of repositories owned by the specified owner, excluding any repositories that are forks.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the gh tool