[英]Can I use SSH and HTTPS both for single git account?
If i use SSH
then I have to download git repository using git ssh but if I use HTTPS
then https is the way.如果我使用
SSH
,那么我必须使用 git ssh 下载 git 存储库,但如果我使用HTTPS
,那么 https 就是方法。
Can I download those git repo using both way for a single account?我可以为单个帐户使用两种方式下载这些 git repo 吗?
The account is what the remote hosting service will use to authenticate you and determine if you have the right to access the remote repository you want to clone.该帐户是远程托管服务将用来对您进行身份验证并确定您是否有权访问要克隆的远程存储库的帐户。
git@remoteServer:Me/MyRepository
)git@remoteServer:Me/MyRepository
) If the remote hosting service supports both protocols, the same user account can clone using either one of them.如果远程托管服务支持这两种协议,则同一用户帐户可以使用其中任何一种进行克隆。
If you are using HTTPS, make sure:如果您使用的是 HTTPS,请确保:
That is:那是:
git config --global credential.helper
I recommend setting it to manager-core
, using the Microsoft Git Credential Manager (GCM) (cross-platform).我建议使用Microsoft Git Credential Manager (GCM) (跨平台)将其设置为
manager-core
。
It is already packaged/set with Git For Windows for instance.例如,它已经使用Git For Windows打包/设置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.