I have to use different git account for the intranet and extranet for developing and software maintenance task.
For example, I have to set some proxies so I can ssh connect to the extranet but the extranet git account is different with the intranet one. So if set it global like git config --global user.name "user" it will cause some troubles when trying to ssh connect to git repository in the different web environment.
So I want to know how to set the different git account configuration for the different environment.
Here are my .gitconfig right now.
[http "http://git.intranet.com"]
proxy = http://127.0.0.3:0303
[http "https://git.intranet.com"]
proxy = http://127.0.0.3:0303
[user]
name = bowen
email = bowen@email.com
Could anyone help me and give some examples or hints?
Thanks in advances.