git 指定代码分支和账号密码克隆代码
git 指定代码分支和账号密码克隆代码
git clone -b 代码分支 http://username:password@ip:port/xx/uem-vis-realtime.git
如果git的密码password里有类似@这类特殊字符,需要替换成特定符号来代替
如果遇到2FA导致的拉取代码失败,请参考如下
如果开启了2FA,就不能用账号密码拉取,改用办法的access-token应对2FA
本文来自博客园,作者:liwenchao1995,转载请注明原文链接:https://www.cnblogs.com/liwenchao1995/p/16505420.html