What programs use the [github] section in .gitconfig?

I have not looked at my .gitconfig for a while. Now I see the [github] section in it, for example.

 [github] user = <user> token = <token> 

I wonder what the purpose of this section is. What programs use it?

+4
source share
1 answer

The regular git client does not use them. But your own shell scripts or git hooks can, for example,

GitHub cannot read these values. If some random company on the other side of the world could simply perforce read any arbitrary files on your computer, it would be really scary.

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

Source: How does the [github] .gitconfig section work?

+4
source

Source: https://habr.com/ru/post/1485943/


All Articles