Git

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 


Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts