GCLI-FORKS(1)
π GCLI-FORKS(1) π
okay bestie, so this is a page from the General Commands Manual β it's gcli forks, one of the lil' commands that lives inside gcli. pull up a chair πͺβ¨
πΈ NAME πΈ
gcli forks β manage repository forks in git forges. yeah. forking. like the lizard but for repos π¦
β¨ SYNOPSIS β¨
gcli forks [forge-path] [-n n] [-y] [-s] [-o owner -r repo] actions...
gcli forks [forge-path] create [-o owner -r repo] [-i target-owner]
two whole shapes, bestie. pick your fighter π
π¦ DESCRIPTION π¦
so like β you use gcli forks to manage forks of other repositories across all the various git(1) forges out there, y'know, GitHub, GitLab, Gitea, the whole squad π no cap, it's giving "I don't wanna open a browser" energy and honestly? iconic.
π OPTIONS π
-o,--owner_owner_ β operate on the repository belonging to this _owner_. heads up though: this one only works in combination with-r. they're a package deal, fr fr π«Ά-r,--repo_repo_ β operate on the given _repo_. and same vibe: only valid in combination with-o. you cannot have one without the other, it's giving soulmates π-y,--yesβ do not ask for confirmation. assume yes. it just goes. no questions, no takebacks π-s,--sortedβ reverse the output so that the most recent items appear at the bottom. yes it's backwards, yes that's the point, live a little β¨-i,--into_target-owner_ β when you're forking a repository, this is the organisation or user that the repo gets forked into. so like, where's it going. destination vibes π§-n,--count_n_ β fetch at least _n_ forks. and if you set _n_ to-1?? it fetches all of them. all of them. every single one π
Default:30. lowkey important warning though bestie β on repositories with many forks, fetching all forks can take a considerable amount of time and may result in rate limiting by the respective API. so like, don't just yolo-1on a mega-repo unless you're prepared to sit there π
π ACTIONS π
actions... may be one or more of the following:
π delete
delete the fork. you'll be asked for confirmation unless you set -y. (bold move skipping that, but slay I guess π
)
the following flags can be specified:
-r,--repoβ see βOPTIONSβ π-o,--ownerβ see βOPTIONSβ π-y,--yesβ do not ask for confirmation before deleting the fork. see βOPTIONSβ. it's giving "I know what I'm doing" energy β¨
π« EXAMPLES π«
clone vim/vim and fork it into your account:
$ git clone git@github.com:vim/vim
$ cd vim
$ gcli forks create --into <myaccount>
this will ask you if you want to add a remote to your fork. in case you accept the offer, the origin remote will be renamed to upstream and a new origin will be pointed at your newly created fork. (glow up moment honestly π«Ά) you may also want to setup a .gcli file at the same time:
$ printf -- "pr.upstream=vim/vim\npr.base=trunk\n" >> .gcli
delete your fork of the current repository without confirmation:
$ gcli forks -y delete
list forks of herrhotzenplotz/gcli on GitHub using the forge path shorthand:
$ gcli forks gh:herrhotzenplotz/gcli
π SEE ALSO π
π AUTHORS π
Nico Sonack aka. herrhotzenplotz <nsonack@herrhotzenplotz.de> and contributors. (contributors!! we love a collective effort π«Ά)
π BUGS π
please report bugs via E-Mail to https://lists.sr.ht/~herrhotzenplotz/gcli-discuss.
alternatively you can report them on any of the forges linked at https://sr.ht/~herrhotzenplotz/gcli.
but ngl, the preferred and quickest method is to use the mailing list β¨ don't make the maintainers wait bestie π
and that's the whole page! πΈ this was gcli version 2.13.0, dated 05-Aug-2026, and it originally lived as page GCLI-FORKS(1) in the General Commands Manual. mwah π
β¨
π¦ where this page comes from
- nixpkgs unstable: gcli 2.13.0
- ubuntu stonking: gcli 2.13.0-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms