SourceTree 下载出现notfoundTemplate

解决办法

找到git安装路径下的  share\git-core\templates   在下面配置文件中修改

1.在SourceTree的设置页面找遍了也没找到设置template的地方。于是想办法直接修改配置文件。 
2. 由于SourceTree是调用了Git,于是我们去修改Git的配置文件。 
3. 在WIn7系统,Git的配置文件位于C:\Users\<登录用户名>.gitconfig。使用文本编辑工具打开并加入如下几行:

[init] 
templatedir=C:\Users\baope\AppData\Local\Atlassian\SourceTree\git_local\mingw32\share\git-core\templates

注意: 路径中的”\”要用”\\”代替,不然会报错。

保存并重启SourceTree,问题解决。

猜你喜欢

转载自www.cnblogs.com/CHWLearningNotes/p/9474936.html