美文网首页
使用SourceTree添加子模块时遇到的情况

使用SourceTree添加子模块时遇到的情况

作者: Rdxer | 来源:发表于2016-07-14 11:13 被阅读1591次
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree submodule add -f https://git.oschina.net/{UserName}/iOS_DYLibrary.git iOS_DYLibrary_ 
Cloning into 'iOS_DYLibrary_'...
fatal: could not read Username for 'https://git.oschina.net': Device not configured
fatal: clone of 'https://git.oschina.net/{UserName}/iOS_DYLibrary.git' into submodule path 'iOS_DYLibrary_' failed
Completed with errors, see above

url 换成

Url: https://{username}:{password}@git.oschina.net/{username}/repo.git

补充: 直接cmd 命令行操作就行了

相关文章

网友评论

      本文标题:使用SourceTree添加子模块时遇到的情况

      本文链接:https://www.haomeiwen.com/subject/fzpvdttx.html