docs: mention clone.defaultRemoteName

This commit is contained in:
Kazuya Umeki 2026-08-16 03:00:38 +09:00
parent 9d181bfa4b
commit b221561f45
No known key found for this signature in database
GPG key ID: 1206B994C5439170

View file

@ -117,6 +117,10 @@ ghq.<url>.root::
you can specify a repository-specific root directory instead of the common ghq root directory. +
The URL is matched against '<url>' using 'git config --get-urlmatch'.
Since `ghq get` runs `git clone` for Git repositories, git's own configuration applies as
well. For example, `clone.defaultRemoteName` changes the name of the created remote, which
is `origin` by default. +
To get this configuration variable effective, you will need Git 2.30 or higher.
=== Example configuration (.gitconfig):