Windows版Git出现templates not found的问题
来源:互联网 发布:怎样装天正软件 编辑:程序博客网 时间:2024/06/03 21:38
今天再clone 时,出现一个警告信息“warning: templates not found C:\Program Files\Git\share\git-core\templates”。于是想办法解决一下。
分析:
看提示是没有找到tamplate文件。按照错误提示中的路径去找,确实没有对应的目录。我的Git安装目录下只有这些文件夹:
于是想着可能是Windows版的Git客户端路径和Linux或Mac版的有区别。于是搜索了一下templates目录,原来它在
C:\Program Files\Git\mingw64\share\git-core\templates 这个位置。
原因找到了:原来SourceTree去了一个错误的位置找template文件,当然找不到了。我们把正确的位置告诉它就好了。
解决办法
1. 在SourceTree的设置页面找遍了也没找到设置template的地方。于是想办法直接修改配置文件。
2. 由于SourceTree是调用了Git,于是我们去修改Git的配置文件。
3. 在WIn7系统,Git的配置文件位于C:\Users\<登录用户名>\.gitconfig。使用文本编辑工具打开并加入如下几行:
注意: 路径中的"\"要用"/"代替,不然会报错。保存并重启SourceTree,问题解决。
参考资料:
http://blog.csdn.net/sunux_sunux/article/details/52944807
https://answers.atlassian.com/questions/250260/about-git-path-for-sourcetree
阅读全文
0 0
- 解决Windows版Git出现templates not found的问题
- Windows版Git出现templates not found的问题
- 解决Windows版Git(SourceTree)出现templates not found的问题
- (转)解决Windows版Git出现templates not found的问题
- 解决Windows版Git(SourceTree)出现templates not found的问题
- 安装git出现templates not found的问题
- 解决HEXO出现ERROR Deployer not found: git的问题
- warning: templates not found /usr/local/git/share/git-core/templates
- 160606source tress报warning: templates not found /usr/local/git/share/git-core/templates
- warning: templates not found /usr/local/git/share/git-core/templates
- [已解决]sourcetree warning: templates not found C:\Program Files (x86)\Git\share\git-core\templates
- warning: templates not found /usr/local/git/share/git-core/templates
- warning: templates not found /usr/local/git/share/git-core/templates
- Servlet 出现404 not found 的问题
- SourceTree 克隆遇到问题 templates not found /Users/mbasaralusrinivasa/workspace...
- windows 安装 tensorflow 时出现DLL not found的错误
- git问题ERROR: Repository not found.的解决
- windows git bash npm: command not found
- java 交换两个变量值互换
- 项目中的版本-随笔
- lua中math.floor值偏差的问题
- 安卓学习笔记---Android网络传输中必用的两个加密算法:MD5 和 RSA
- qduoj 140 题目6 组合数学
- Windows版Git出现templates not found的问题
- 你好2017! 再见2015, 再见小码哥!
- MWeb 更新CSDN博客
- ARM笔记1
- S3C2440旧版本uboot重定位分析
- Android 辅助功能使用
- 学生成绩排名
- Junit加载Spring容器作单元测试
- Activity从底部向上半透明弹出效果实现