get-fork
Get a repo's upstream fork record, or find a specific owner's fork of an upstream repo
Auth
Authenticated
Examples
# Get this repo's upstream fork record
ghit-cli get-fork website
# Get a specific user's fork of an upstream repo
ghit-cli get-fork teams/platform/website --owner alice
# Get a specific team's fork of an upstream repo
ghit-cli get-fork alice/website --owner teams/platform-forks
Expected Response
Prints a single JSON object from the API. With --owner, the CLI switches from upstream lookup mode to owner-specific fork lookup mode.
Errors
404 Not Foundwhen the referenced resource does not exist.403 Forbiddenwhen owner/repo access checks fail.
Common auth errors are documented on the CLI overview page.
Help Output
Get a repo's upstream fork record, or a specific owner's fork of an upstream repo
Usage: ghit-cli get-fork [OPTIONS] <REPO>
Arguments:
<REPO> Repo locator (`teams/<team_slug>/<repo_slug>` or `<username>/<repo_slug>`), or `<repo_slug>` for authenticated user
Options:
--owner <OWNER> Fork owner locator (`teams/<team_slug>` or `<username>`). When omitted, gets this repo's upstream fork record
-h, --help Print help