Hi Guest 1 HomePage 1 Jobs 1 WalkIn 1Articles  

 :) Latest Topic
Git Tutorial
What is Git?
Features of Git
Benefits of Git
Why use Git?
GitHub Introduction
GitHub Features
GitHub Benefits
Git vs GitHub
Git vs SVN
Git vs Mercurial
Version Control System
Distributed Version Control
Install Git on Windows
Install Git on Linux
Install Git on MAC
Git Environment Setup
Git configuration levels
Git Tools
Git Third Party Tools
Git Terminology Part1
Git Terminology Part2
Git Commands Part1
Git Commands Part2
Git Commands Part3
Git Cheat Sheet
Folders Node.js part2
 


  

 
Git configuration levels
Question Posted on 07 May 2023

Home >> Tutorial >> Git Tutorial >> Git configuration levels


Git configuration levels

Git configuration levels



The Git config command can argument to mainly accept arguments to specify the configuration level. And belwo are the configuration levels which are available in the Gir config.

  • local

  • global

  • system


--local

When we say about the local it is the default level in Git. And git config will write to a local level if no configuration option is given. And Local configuration values are stored in ".git/config" directory as a file.

--global

When we say about the global, global level configuration is user-specific configuration. Here user-specific means, it is applied to an individual operating system user. And global configuration values are stored in a user's home directory. "~ /.gitconfig" on UNIX systems and "C:\Users\\.gitconfig" on windows as a file format.

--system

Here the system-level configuration is applied across an entire system. Here entire systm means all users on an operating system and all repositories. Here system level configuration file stores in a "gitconfig" file off the system directory. "$(prefix)/etc/gitconfig" on UNIX systems and "C:\ProgramData\Git\config" on Windows.


And the order of priority of the Git config is local, global and system, respectively. This is means when looking for a configuration value, and git will start at the local level and bubble up to the system level.





Other Important Questions
Git Third Party Tools
What is Git?
GitHub Introduction
Features of Git
GitHub Features







 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |