Where Is Git Config File Ubuntu?
Contents
Ubuntu Linux Git Config File Locations
Scope Location and Filename Filename Only
System ~etc/gitconfig gitconfig
Global ~home/<username>/.gitconfig or ~root/.gitconfig .gitconfig
Local <git-repo>/.git/config config

Where is git config file Linux?

On Linux, the config file will remain in the /etc/gitconfig . In macOS, there is a file called as /usr/local/git/etc/gitconfig .

How do I find Git config file?

The system level configuration file lives in a gitconfig file off the system root path. $(prefix)/etc/gitconfig on unix systems. On windows this file can be found at C:Documents and SettingsAll UsersApplication DataGitconfig on Windows XP, and in C:ProgramDataGitconfig on Windows Vista and newer.

Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article
Twitter Facebook Pinterest