转载自:http://www.uhdesk.com/?p=12
如红色部分所示,clone时候就添加上用户名,随后会提示你输入密码,就OK了
git clone https://username@github.com/blah/blahblah.git
如果你想后面的操作也不再输入密码了,你可以在地址中加上密码
git clone https://username:password@github.com/blah/blahblah.git
如果你已经clone了,也可以通过重设地址的方式
git remote set-url origin https://username:password@github.com/blah/blahblah.git
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/blah/blahb
最新推荐文章于 2025-07-11 17:04:29 发布
本文介绍了如何在使用Git从GitHub克隆仓库时避免重复输入密码的方法。通过在URL中直接添加用户名和密码,可以实现Git仓库的一次性配置与无缝克隆。
4万+

被折叠的 条评论
为什么被折叠?



