Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does [github] section of .gitconfig work?

I'm wondering how github can read in these values? I could see a use of this for deployments etc. if I can define my own, custom sections.

Thanks

like image 785
Misha M Avatar asked Nov 24 '10 17:11

Misha M


People also ask

Where does the .gitconfig file go?

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 Settings\All Users\Application Data\Git\config on Windows XP, and in C:\ProgramData\Git\config on Windows Vista and newer.

How does git internally manage branches?

A branch in Git is simply a lightweight movable pointer to one of these commits. The default branch name in Git is master . As you start making commits, you're given a master branch that points to the last commit you made. Every time you commit, the master branch pointer moves forward automatically.

What are the three levels of git configuration?

# There are 3 levels of git config; project, global and system.


1 Answers

GitHub cannot read those values. If some random company on the other side of the world could just willy-nilly read any arbitrary files on your computer, that would be truly scary.

But of course any program you run on your computer can read those values. Including, for example, the hub command or the github command, which are two popular commandline clients for GitHub.

like image 187
Jörg W Mittag Avatar answered Oct 18 '22 18:10

Jörg W Mittag