git clone 使用账号密码 windows

linux 如果需要账号密码会提示让输入,而windows则会直接403错误。

git clone http://邮箱(或用户名):密码@仓库http地址

示例:

邮箱: [email protected]

密码: password

仓库: https://gitee.com/sunshine-fork/aliyun_oss.git

注意: 邮箱中的 @ 要使用 %40 代替。仓库 URL 不需要 https:// 。

命令:

git clone http://xw%40qq.com:[email protected]/sunshine-fork/aliyun_oss.git

猜你喜欢

转载自blog.csdn.net/SUNbrightness/article/details/122304775