解决Windows版Git(SourceTree)出现templates not found的问题
2017-05-19 14:29
645 查看
问题:
今天在用SourceTree clone imsdroid的源码时,出现一个警告信息warning: templates not found
C:\Users\baope\AppData\Local\Atlassian\SourceTree\git_local\share\Git-core\templates
环境&解释:
Win 10SourceTree 1.10.20.1(使用的SourceTree内嵌Git,而非系统安装Git)
解决办法:
1.在SourceTree的设置页面找遍了也没找到设置template的地方。于是想办法直接修改配置文件。
2. 由于SourceTree是调用了Git,于是我们去修改Git的配置文件。
3. 在WIn7系统,Git的配置文件位于C:\Users\<登录用户名>.gitconfig。使用文本编辑工具打开并加入如下几行:
[user]
name = DR/Administrator
email = ceek@vip.qq.com
[init]
templatedir=C:/Users/Administrator/AppData/Local/Atlassian/SourceTree/git_local/mingw32/share/git-core/templates
保存并重启SourceTree,问题解决。
相关文章推荐
- 解决Windows版Git(SourceTree)出现templates not found的问题
- 解决Windows版Git出现templates not found的问题
- (转)解决Windows版Git出现templates not found的问题
- 解决Windows版Git出现templates not found的问题
- Windows版Git出现templates not found的问题
- 解决Windows Git客户端(Source Tree) clone时出现的templates not found问题
- 解决HEXO出现ERROR Deployer not found: git的问题
- 安装git出现templates not found的问题
- 安装git出现templates not found的问题
- 解决apt-get install blktrace时,出现source 404 not found的问题
- Git/Repo-----Repo upload时出现的missing blob问题解决方法
- 关于nios下载出现(Connected system ID hash not found..)问题的解决
- 解决Ubuntu编译内核uImage出现问题“mkimage” command not found - U-Boot
- 解决Ubuntu编译内核uImage出现问题“mkimage” command not found - U-Boot images will not be built问题
- 1git命令的使用,查看git仓库状态,添加文件到git跟踪,git提交,查看git分支,查看git仓库日志信息,切换git分支,解决git分支合并后出现冲突的问题
- Android 使用adb shell命令时出现sqlite3 : not found 问题 解决方法
- jenkins执行xctool命令出现command not found问题解决方法
- 编译hadoop-0.20.2源码时执行ant eclipse-files出现.eclipse.templates does not exist问题解决方案
- ubuntu12.04下安装git出现版本问题的解决
- windows下使用git管理代码,其中出现的问题的解决办法