git
Tips
Clone using ssh-key
git clone ssh://git@github.com/<user>/<repository name>.git
Push to github without password using ssh-key
If it is asking you for a username and password, your origin remote is pointing at the https url rather than the ssh url.
For example, a github project like Git will have https url
https://github.com/<Username>/<Project>.git
and the ssh one:
git@github.com:<Username>/<Project>.git
You can do:
git remote set-url origin git@github.com:<Username>/<Project>.git
to change the url.
Last updated
Was this helpful?