I was wondering what is the safest way to use services like Github and Bitbucket. What are the differences between use HTTPS and use SSH?
Will it change how the repositories are invoked? I meant, I have seen commands like:
git clone git@github.com:nsf/godit.git
and
git clone https://github.com/nsf/godit.git
I'd like avoid problems like this:
The differences are mainly in the way authentication is done: for SSH, you'll use the keys to authenticate, and HTTPS will use username/password.
Note that to use SSH, you'll need to have write access to a repository, whereas HTTPS can be used for any type of a repository. Here 'sa useful help page with more details.
To avoid having to re-enter the password with HTTPS authentication, see this article .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.