vendredi 16 septembre 2011

How to setup github access through corporate firewall

I had troubles cloning and pushing to my github account. My company has a firewall and all internet accesses are through the corporate firewall. Hopefully, I found an easy way to get access to my account with the following steps. I'm using msysgit 1.7.6 on a Windows 7 machine.
Configure the github global property http.proxy:
git config --global http.proxy http://host:port
Access your git repository through the http protocol. For public repositories it's
git clone http://github.com/username/project.git
And for private repositories, use the following command (you'll be prompted for your password):
git clone https://username@github.com/username/project.git
If you want to push your changes to your github account, you have to change the URL for your remotes and use the same format as specified above.

Aucun commentaire:

Enregistrer un commentaire