Github for Windows Settings Agent one: Introduction
In the company, often for some reason to use the agent, so in the context of the agent to use GitHub, it is necessary to set up a proxy for it. Github for Windows provides GUI and shell versions, the GUI does not provide a place to set up proxies, and can be set through the shell. The end result is to modify the GitHub configuration file. gitconfig, this file is generally in the user directory: C:\Users\andychen\.gitconfig. As mentioned in the previous article, the configuration file is not particularly necessary, preferably in the user directory, rather than in an absolute path that all users can use.
Two: specific operation
1. Modify the. Gitconfig configuration file C:\Users\andychen\.gitconfig directly:
To add an HTTP paragraph after opening:
[User] email = [email protected] name = Ligouden[alias] CO = checkout br = Branch ci = commit st = Status[htt P] proxy = 10.45.40.148:8080
2. Modify the command line below,
Open Gitshell:
c:\users\andychen\documents\github> git config--global http.proxy 10.45.40.148:8080
Then query the HTTP proxy:
c:\users\andychen\documents\github>> git config--get http.proxy10.45.40.148:8080
The visible command is also the Gitconfig file that was eventually modified.
Github for Windows Setup Agent