diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-02-17 10:13:31 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-02-17 10:13:31 -0800 |
commit | c37f9a1bc38cad56c9eca40014802e7cd822c21c (patch) | |
tree | 9dbd9746f9cd3f6949eec3a7a10d54ac5ed047f0 /Documentation/config.txt | |
parent | dbda66b0e283494c35958316c9b1c47b6e6c9f59 (diff) | |
parent | 4d5c2956969a6690db2bbb2f3ff40459c09d7646 (diff) | |
download | git-c37f9a1bc38cad56c9eca40014802e7cd822c21c.tar.gz |
Merge branch 'da/user-useconfigonly'
The "user.useConfigOnly" configuration variable can be used to
force the user to always set user.email & user.name configuration
variables, serving as a reminder for those who work on multiple
projects and do not want to put these in their $HOME/.gitconfig.
* da/user-useconfigonly:
ident: add user.useConfigOnly boolean for when ident shouldn't be guessed
fmt_ident: refactor strictness checks
Diffstat (limited to 'Documentation/config.txt')
-rw-r--r-- | Documentation/config.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt index 0a08638bcd..01cca0a701 100644 --- a/Documentation/config.txt +++ b/Documentation/config.txt @@ -2830,6 +2830,16 @@ user.name:: Can be overridden by the 'GIT_AUTHOR_NAME' and 'GIT_COMMITTER_NAME' environment variables. See linkgit:git-commit-tree[1]. +user.useConfigOnly:: + Instruct Git to avoid trying to guess defaults for 'user.email' + and 'user.name', and instead retrieve the values only from the + configuration. For example, if you have multiple email addresses + and would like to use a different one for each repository, then + with this configuration option set to `true` in the global config + along with a name, Git will prompt you to set up an email before + making new commits in a newly cloned repository. + Defaults to `false`. + user.signingKey:: If linkgit:git-tag[1] or linkgit:git-commit[1] is not selecting the key you want it to automatically when creating a signed tag or |