Jos*_*osh 4 configuration atlassian-sourcetree
TL; DR:SourceTree for Windows最近添加了"提交文本链接"功能,但似乎必须为每个存储库设置替换.有没有办法全局应用它们或者可以通过编程方式修改配置文件来设置它们?
长版本:"提交文本链接"功能看起来非常有用,但我有一个问题:我们有大约十几个JIRA项目和超过25个存储库,每个都可能与之相关(它们都不是1到1) 1个映射).虽然我可以设置一个正则表达式来匹配每个JIRA项目,但要求我的所有开发人员通过UI为每个存储库设置它有点多.为了真正利用这一点,我理想情况下需要能够在单个文件上给出指令以进行修改,或者我需要生成一个可以分发给开发人员的安装脚本.
是否有保存此设置的配置文件?我期待看到它像.hg/hgrc,但我找不到任何东西.我也在SourceTree Program Files文件夹中找不到任何相关设置.
或者,是否存在可应用于所有存储库的全局或默认设置?加上正则表达式版本可以使设置显着减少痛苦,如果仍然手动.
谢谢!
(注意:我在SourceTree for Windows的1.3.3.0版本中,我相信它是最新的稳定版本)
小智 5
May be a bit late, but I've found a relatively easy way to do this.
Underneath your .hg/.git folder within your repository should exist a file called 'sourcetreeconfig.' This is where the links live and can be manually edited.
First make sure that you have closed all of the existing repository tabs within sourcetree, and additionally close sourcetree afterwards. Then, (assuming you have already configured a repository) copy the block from the respective repository's sourcetreeconfig and do a replace across all of your sourcetreeconfig files. This would be if you have multiple tied to the same project. It should be relatively easy to throw something together that can configure for different projects, just replace the url/project within the config.
Upon reopening sourcetree, each of your repositories should reflect this change.
This was performed using version 1.6.5.0 of sourcetree.
| 归档时间: |
|
| 查看次数: |
1269 次 |
| 最近记录: |