git管理代码报错(使用Sourcetree工具) 有子模块Submodule(未解决)
来源:互联网 发布:js 全国城市字母排序 编辑:程序博客网 时间:2024/05/22 12:57
git报错(使用Sourcetree工具)
//1克隆master(有子模块Submodule)
Submodule 'ReactiveCocoa' (https://github.com/ReactiveCocoa/ReactiveCocoa.git) registered for path 'ReactiveCocoa'
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree clone --branch masterhttp://x.x.x.x/project/project-iOS.git /Users/zhanglizhi/Desktop/17_5_9校优_T
Cloning into '/Users/zhanglizhi/Desktop/17_5_9校优_T'...
warning: templates not found /usr/local/git/share/git-core/templates
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree submodule update --init --recursive
No submodule mapping found in .gitmodules for path 'Pods'
Cloning into '/Users/zhanglizhi/Desktop/17_5_9校优_T'...
warning: templates not found /usr/local/git/share/git-core/templates
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree submodule update --init --recursive
No submodule mapping found in .gitmodules for path 'Pods'
Completed with errors, see above
//2合并分支(有子模块Submodule)
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree submodule update --init --recursive
Cloning into 'ReactiveCocoa'...
warning: templates not found /usr/local/git/share/git-core/templates
fatal: reference is not a tree: 89ebed97bffb4116dba39b665d1f1ecb27004d92
Unable to checkout '89ebed97bffb4116dba39b665d1f1ecb27004d92' in submodule path 'ReactiveCocoa'
Submodule 'ReactiveCocoa' (https://github.com/ReactiveCocoa/ReactiveCocoa.git) registered for path 'ReactiveCocoa'
Cloning into 'ReactiveCocoa'...
warning: templates not found /usr/local/git/share/git-core/templates
fatal: reference is not a tree: 89ebed97bffb4116dba39b665d1f1ecb27004d92
Unable to checkout '89ebed97bffb4116dba39b665d1f1ecb27004d92' in submodule path 'ReactiveCocoa'
Submodule 'ReactiveCocoa' (https://github.com/ReactiveCocoa/ReactiveCocoa.git) registered for path 'ReactiveCocoa'
Completed with errors, see above
使用命令:
1.去到相应的子模块ReactiveCocoa (Submodule)
cd /Users/zhanglizhi/Desktop/项目_hh/ReactiveCocoa
2.查看状态
git status
3.返回主分支
git checkout master
4.可以更新
git submodule update --remote
0 0
- git管理代码报错(使用Sourcetree工具) 有子模块Submodule(未解决)
- 使用Git Submodule管理子模块
- 使用Git Submodule管理子模块
- git学习 - 使用submodule(子模块)管理外链库
- Git Submodule管理项目子模块
- git submodule子模块
- git-子模块submodule
- git丶Git Submodule管理项目子模块
- git子模块使用之git submodule与 git subtree比较
- Git Submodule管理项目子模块 使用场景 当项目越来越庞大之后,不可避免的要拆分成多个子模块,我们希望各个子模块有独立的版本管理,并且由专门的人去维护,这时候我们就要用到git的
- 6.6 Git 工具 - 子模块
- 7.11 Git 工具 - 子模块
- 6.6 Git 工具 - 子模块
- SourceTree<四>子模块
- SourceTree<一>设置子模块
- Git使用子模块引用外部项目
- git子模块
- Git下载子模块
- 安卓网络编程-WebView基本用法
- printk实现分析
- [php扩展开发] -- 添加类
- 程序学徒与导师
- Python---numpy一般操作
- git管理代码报错(使用Sourcetree工具) 有子模块Submodule(未解决)
- Maven+Mybatis+Spring+SpringMVC实现分页查询(附源码)
- 1.移动端与pc端点击事件的不同:
- TCP/IP、Http、Socket的区别
- linux scp(Linux之间复制文件和目录)命令参数及用法详解
- sun.misc.unsafe类的使用
- JAVA开发之 3 -JDK的下载与安装
- MISCONF Redis is configured to save RDB snapshots
- Linux 进程详解