Make GIT Default To SSH Instead Of HTTPS

Posted by Weston Ganger

I got frustrated of having to type my password each time I pushed or pulled. To switch to using SSH just run the following command in your git repository


# For New Remotes
git remote add origin git@github.com:yourusername/yourproject.git

# Modifying Pre-Existing Repository
git remote set-url origin git@github.com:yourusername/yourproject.git


Related External Links:

Article Topic:Software Development - Linux

Date:August 29, 2015

Recommended Posts

Contact

604-309-8713
info@solidfoundationwebdev.com

Send Me A Message

I would love to get in touch and talk about your next project. Feel free to send a message and I will get back to you shortly.

Get Connected