mirror of
https://github.com/x-motemen/ghq.git
synced 2026-09-10 07:26:27 -04:00
Merge pull request #540 from umekikazuya/document-clone-config
Some checks failed
Some checks failed
docs: mention clone.defaultRemoteName
This commit is contained in:
commit
2474201bcc
|
|
@ -117,6 +117,10 @@ ghq.<url>.root::
|
||||||
you can specify a repository-specific root directory instead of the common ghq root directory. +
|
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'.
|
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):
|
=== Example configuration (.gitconfig):
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue