美文网首页
https vs ssh

https vs ssh

作者: iMark | 来源:发表于2016-10-27 13:46 被阅读37次

the most obvious difference between these two methods is seen here: Why is Git always asking for my password?

In fact, when I am working on Ubuntu for the git repository from oschina, I am often asked to provide the username and the passswd.

On github's page, it reads:

If Git prompts you for a username and password every time you try to interact with GitHub, you're probably using the HTTPS clone URL for your repository.

Using an HTTPS remote URL has some advantages: it's easier to set up than SSH, and usually works through strict firewalls and proxies. However, it also prompts you to enter your GitHub credentials every time you pull or push a repository.
You can configure Git to store your password for you. If you'd like to set that up, read all about setting up password caching.

相关文章

网友评论

      本文标题:https vs ssh

      本文链接:https://www.haomeiwen.com/subject/dttsuttx.html