Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
git_config [2019/02/18 09:44] rpjdaygit_config [2019/02/18 09:57] (current) – [Configuration sections and keys] rpjday
Line 96: Line 96:
 ==== ~/.gitconfig (--global) ==== ==== ~/.gitconfig (--global) ====
  
-Per-user (it would have killed them to call it ''%%--%%user''?):+Per-user:
  
 <code> <code>
Line 187: Line 187:
 ===== Overriding configuration settings ===== ===== Overriding configuration settings =====
  
-==== One-time config override with -c ==== 
  
-<code> 
-$ git -c user.name="Keyser Soze" <command>... 
-</code> 
  
 ==== Environment variables ==== ==== Environment variables ====
  
-As an example, ''git commit'' searches for the editor to use when entering the commit message:+Most Git commands support environment variables for overriding configuration settings. As an example, ''git commit'' searches for the editor to use when entering the commit message:
  
   * ''GIT_EDITOR'' environment variable   * ''GIT_EDITOR'' environment variable
Line 214: Line 210:
 </code> </code>
  
-===== Configuration sections and keys =====+==== One-time config override with -c ==== 
 + 
 +If you need a one-time-only override of some config setting, most Git commands support the "-c" option: 
 + 
 +<code> 
 +$ git -c user.name="Keyser Soze" <some command>... 
 +</code> 
 +===== Sections and subsections =====
  
 Format of ''<section>.<key>'': Format of ''<section>.<key>'':
  • git_config.1550483047.txt.gz
  • Last modified: 2019/02/18 09:44
  • by rpjday