Reputation: 515
If i use SSH
then I have to download git repository using git ssh
but if I use HTTPS
then https is the way.
Can I download those git repo using both way for a single account?
Upvotes: 1
Views: 1016
Reputation: 1323463
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
)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:
That is:
git config --global credential.helper
I recommend setting it to manager-core
, using the Microsoft Git Credential Manager (GCM) (cross-platform).
It is already packaged/set with Git For Windows for instance.
Upvotes: 1