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: