File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,23 @@ can use `--no-track` to override that behaviour. The same goes for `--color`
161
161
and `--no-color`.
162
162
163
163
164
+ Options trump configuration and environment
165
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
166
+
167
+ When there is a configuration variable or an environment variable
168
+ that tweak the behaviour of an aspect of a Git command, and also a
169
+ command line option that tweaks the same, the command line option
170
+ overrides what the configuration and/or environment variable say.
171
+
172
+ For example, the `user.name` configuration variable is used to
173
+ specify the human-readable name used by the `git commit` command to
174
+ record the author and the committer name in a newly created commit.
175
+ The `GIT_AUTHOR_NAME` environment variable, if set, takes precedence
176
+ when deciding what author name to record. The `--author=<author>`
177
+ command line option of the `git commit` command, when given, takes
178
+ precedence over these two sources of information.
179
+
180
+
164
181
Aggregating short options
165
182
~~~~~~~~~~~~~~~~~~~~~~~~~
166
183
Commands that support the enhanced option parser allow you to aggregate short
You can’t perform that action at this time.
0 commit comments