git 指定代码分支和账号密码克隆代码

git 指定代码分支和账号密码克隆代码

git clone -b 代码分支 http://username:password@ip:port/xx/uem-vis-realtime.git

如果git的密码password里有类似@这类特殊字符,需要替换成特定符号来代替
image

如果遇到2FA导致的拉取代码失败,请参考如下

如果开启了2FA,就不能用账号密码拉取,改用办法的access-token应对2FA

https://www.cnblogs.com/liwenchao1995/p/17434521.html

posted @ 2022-07-22 13:38  liwenchao1995  阅读(339)  评论(0)    收藏  举报