英文:
"Sourcetree determined this URL is in an unsupported format" when I check a .rc file
问题
当我检查.babelrc
的Git历史记录时,我收到了错误消息"Sourcetree确定此URL处于不受支持的格式中"。
使用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".
Using git log
works fine.
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
...
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论