«

»

Feb 28

HTTPS with GITHUB

SSH port is blocked at many company firewalls – for no good technical reasons of course, but probably driven by security policies, and that means one cannot use github without either a weird proxy hack or via HTTPS, which github now supports.

For cloning an existing repro – just use the https path.

# public repro
git clone https://github.com/username/repro.git
# private repro - will prompt for password 
git clone https://username@github.com/username/repro.git

 

If you are creating a new repro, then you want to add the http path as the origin server.

# will prompt password upon push 
git remote add origin https://username@github.com/username/repro.git
Share

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

To use reCAPTCHA you must get an API key from https://www.google.com/recaptcha/admin/create