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    下拉子模塊

 

---恢復內容結束---


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM