“Sourcetree determined this URL is in an unsupported format” 当我检查一个 .rc 文件时。

huangapple go评论72阅读模式
英文:

"Sourcetree determined this URL is in an unsupported format" when I check a .rc file

问题

当我检查.babelrc的Git历史记录时,我收到了错误消息"Sourcetree确定此URL处于不受支持的格式中"。

“Sourcetree determined this URL is in an unsupported format” 当我检查一个 .rc 文件时。

使用git log可以正常工作。

qiulang@qiulangdeMacBook-Air jssipwrap % git log -p -- .babelrc
commit a428050a4b563de019d23751b3988a02525096ca (HEAD -> master, origin/master, origin/HEAD)
Author: qiulang2000 <qiulang2000@126.com>
Date: Fri Feb 24 16:20:08 2023 +0800
...

我发现Sourcetree对其他.rc文件也会报错。我该如何修复它?

英文:

When I check .babelrc git history I got the error "Sourcetree determined this URL is in an unsupported format".

“Sourcetree determined this URL is in an unsupported format” 当我检查一个 .rc 文件时。

Using git log works fine.

qiulang@qiulangdeMacBook-Air jssipwrap % git log -p -- .babelrc
commit a428050a4b563de019d23751b3988a02525096ca (HEAD -&gt; master, origin/master, origin/HEAD)
Author: qiulang2000 &lt;qiulang2000@126.com&gt;
Date:   Fri Feb 24 16:20:08 2023 +0800
...

I find sourcetree will complain for other .rc files too. How do I fix it ?

答案1

得分: 2

如@JoachimSauer在评论中向我展示的,这是一个sourcetree bug,他们已经在4.2.4中修复了它。

我还验证它对所有的.rc文件都有效。

英文:

As @JoachimSauer has shown me in the comment, it is a sourcetree bug and they have fixed it in 4.2.4.

I also verify it works for all the .rc files.

答案2

得分: 0

这不是一个很好的方法,但作为一种解决方法,您可以:

  • 创建一个新分支
  • 重命名以 . 开头的文件/文件夹
  • 提交更改
  • 现在您可以使用 Log Selected 查看历史记录
  • 选中 Follow renamed files 复选框以查看完整的历史记录
英文:

It's not great but as a workaround you can:

  • Create a new branch
  • Rename the file/folder starting with .
  • Commit the change
  • Now you can see history with Log Selected
  • Check the Follow renamed files checkbox to see the full history

huangapple
  • 本文由 发表于 2023年2月24日 16:39:35
  • 转载请务必保留本文链接:https://go.coder-hub.com/75554303.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定