Linux

Make GIT Default To SSH Instead Of HTTPS

Posted by Weston Ganger on August 29, 2015

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:


Posted in Linux and Tagged with git linux ssh 


Want me to help develop your next project or application?

Contact Us

Specializing in Ruby-on-Rails, Javascript, Multi-Platform Electron Desktop Apps and Hybrid Cordova Mobile Apps.

Recommended Posts