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