git clone over https 401 error and not asking for username or password

前端 未结 3 999
小蘑菇
小蘑菇 2020-12-10 03:11

I have a private git repository on Codaset. Normally when I try to clone it over HTTPS on my Windows machine, it asks me for my username and password. When I try to clone it

3条回答
  •  天涯浪人
    2020-12-10 04:06

    I got it to work using this format:

    https://username:password@codaset.com/username/project_name.git destination_folder

    However according to these 2 posts, using that method could be a security problem:

    Can a username and password be sent safely over HTTPS via URL parameters?

    Username and password in https url

提交回复
热议问题