git管理代码报错(使用Sourcetree工具) 有子模块Submodule(未解决)
2017-05-09 09:43
671 查看
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'
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'
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
//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'
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'
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
相关文章推荐
- GIT 代码管理工具 SourceTree
- SourceTree的基本使用 1. SourceTree是什么 拥有可视化界面的项目版本控制软件,适用于git项目管理 window、mac可用 2. 获取项目代码 1. 点击克隆/新建 2
- git代码管理:使用SourceTree push时错误:error: unable to rewind rpc post data - try increasing http.postBuffer
- git代码管理工具使用
- 对于如何在编码过程中,我们如何管理代码的问题,下面是针对代码管理工具git的安装和使用
- [Git]代码管理工具简单使用
- mac上git管理工具sourcetree使用
- SourceTree git的管理工具使用教程1
- git管理代码工具的搭建和使用
- 我为什么推荐你使用 Android Studio 的 Git 工具去管理你的代码
- [iOS]git管理工具Sourcetree使用之提交项目到远程仓库(傻瓜式图文教程)
- 代码管理工具git的使用
- 代码管理工具:使用github和git工具管理自己的代码
- mac电脑下将没有做git管理的代码使用github和sourceTree进行代码管理
- 开始使用Git工具进行代码管理--记在CSDN空间提交项目的开始
- 代码管理工具git 个基本使用基础
- 使用skydrive等云端存储工具管理私有git代码库
- Ubuntu使用git来管理代码
- 几个代码管理工具的基本使用介绍
- 使用Git 作为项目管理工具开发时的方式和注意事项