Git submodule 拉取子模块

 

$ git clone https://code.Xcode.com.client.git
Cloning into 'vipkid-pc-client'...
Username for 'https://code.vipkid.com.cn': zhangguangming1
remote: HTTP Basic: Access denied
remote: You must use a personal access token with 'api' scope for Git over HTTP.
remote: You can generate one at https://code.vipkid.com.cn/profile/personal_access_tokens

fatal: Authentication failed for 'https://code.Xcode.com/Classroom-Core/PCClient/vipkid-pc-client.git/'
Access denied
分析:没有管理员权限,以管理员身份运行cmd,更改–system配置
You must use a personal access token with 'api' scope for Git over HTTP.   
调用gitlab接口时,使用http链接需要用到个人访问令牌来访问gitlab api
 cannot create directory at 'src/......WXTClient-201705192321.dby': Filename too long

在git bash中,运行下列命令: git config --global core.longpaths true

就可以解决该问题。

--global是该参数的使用范围,如果只想对本版本库设置该参数,只要在上述命令中去掉--global即可。

 

 

git clone xxxxxxxxxxxxxxxx;    拉 取项目

git branch -r;                查看远仓分支

git checkout *****         切换分支

git submodule updata --init --recursive    下拉子模块

 

---恢复内容结束---

转载于:https://www.cnblogs.com/lizhanzhe/p/10837843.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值