解决Windows Git客户端(Source Tree) clone时出现的templates not found问题
2018-01-19 11:25
1311 查看
在使用Source Tree clone代码的时候发现一直出现Templates not found的警告:
warning: templates not found C:\Users\LiuBin\AppData\Local\Atlassian\SourceTree\git_local\share\git-core\templates
进入该路径发现git_local目录下没有share目录,但是mingw32目录下能找到
那么警告出现的原因就很明显了,Source Tree去了一个错误的路径查找Templates当然找不到了,解决办法很简单,设置正确的Templates路径即可。
解决办法:
本人的安装环境是WIN7+Source Tree 2.3.2.0 使用内嵌Git
在C:\Users\<username> 路径下找到.gitconfig文件,用文本编辑器打开,插入以下配置:
[init]
templatedir=C:/Users/LiuBin/AppData/Local/Atlassian/SourceTree/git_local/mingw32/share/git-core/templates注意:路径中的"\"要替换为"/",否则clone的时候会报错!
参考资料:https://answers.atlassian.com/questions/250260/about-git-path-for-sourcetree
warning: templates not found C:\Users\LiuBin\AppData\Local\Atlassian\SourceTree\git_local\share\git-core\templates
进入该路径发现git_local目录下没有share目录,但是mingw32目录下能找到
那么警告出现的原因就很明显了,Source Tree去了一个错误的路径查找Templates当然找不到了,解决办法很简单,设置正确的Templates路径即可。
解决办法:
本人的安装环境是WIN7+Source Tree 2.3.2.0 使用内嵌Git
在C:\Users\<username> 路径下找到.gitconfig文件,用文本编辑器打开,插入以下配置:
[init]
templatedir=C:/Users/LiuBin/AppData/Local/Atlassian/SourceTree/git_local/mingw32/share/git-core/templates注意:路径中的"\"要替换为"/",否则clone的时候会报错!
参考资料:https://answers.atlassian.com/questions/250260/about-git-path-for-sourcetree
相关文章推荐
- (转)解决Windows版Git出现templates not found的问题
- 解决Windows版Git(SourceTree)出现templates not found的问题
- 解决Windows版Git出现templates not found的问题
- 解决Windows版Git(SourceTree)出现templates not found的问题
- 解决Windows版Git出现templates not found的问题
- windows下使用git管理代码,其中出现的问题的解决办法
- 解决HEXO出现ERROR Deployer not found: git的问题
- 终于解决“Git Windows客户端保存用户名与密码”的问题
- 安装git出现templates not found的问题
- Git 系列之二:Windows 下 Git 客户端的选择,及 msysGit 各种中文问题的解决-转载
- 终于解决“Git Windows客户端保存用户名与密码”的问题
- 解决 GitHub For Windows 客户端软件中代码的中文显示乱码问题 (Git/GitHub)
- 定时任务执行git clone出现permission denied(publickey)问题的解决
- Git 系列之二:Windows 下 Git 客户端的选择,及 msysGit 各种中文问题的解决-转载
- 解决git clone时,出现Failed to connect to 127.0.0.1 port 46759: 拒绝连接的问题
- 终于解决“Git Windows客户端保存用户名与密码”的问题zhz
- 终于解决“Git Windows客户端保存用户名与密码”的问题(转载)
- 安装git出现templates not found的问题
- Git 系列之二:Windows 下 Git 客户端的选择,及 msysGit 各种中文问题的解决
- 终于解决“Git Windows客户端保存用户名与密码”的问题