简体   繁体   中英

Git clone command line https authorization error

I have installed the git command line. Every time I try to clone a repo I get an authentication error.

fatal: Authentication failed for ....

It works on my mac but not on my windows laptop. Does anyone have an idea?

you can use code in command line

git clone https://username@example.com/.../project_name.git

or

git clone https://username:password@example.com/.../project_name.git

Should save git auth username and password on windows credential manager在此处输入图片说明

I have got same error. Go to control panel -> User Account --> Credential Manager and edit git credentials.

在此处输入图片说明

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM