Stats

164 Contributors: 14
2017-06-16
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook

Configuration

Download git eBook

Syntax

  • git config [<file-option>] name [value] # one of the more common use cases of git config

Parameters

ParameterDetails
--systemEdits the system-wide configuration file, which is used for every user (on Linux, this file is located at $(prefix)/etc/gitconfig)
--globalEdits the global configuration file, which is used for every repository you work on (on Linux, this file is located at ~/.gitconfig
--localEdits the respository-specific configuration file, which is located at .git/config in your repository; this is the default setting

Related Examples