具有以下项目结构并不罕见:
此结构(自述文件位于根目录中)得到了很好的支持不同的在线Git解决方案(例如github.com,bitbucket.org)。
我们如何使Eclipse从存储库的根目录导入CHANGELOG,LICENSE,README文件并将其显示在Project Explored / Navigator中?
(问了类似的问题,但是它的目标是使在线工具从子目录中呈现README。自述文件,...)
解决方案对于 README.md
:
PARENT-1-PROJECT_LOC / README.md
请注意,这些文件显示在 Git存储库 视图的 工作树 节点。无需使用上述技巧,只需通过 Git存储库打开这些文件,然后像往常一样编辑,保存和提交即可。
It's not uncommon to have the following structure of projects:
This structure (the fact that README is located in the root directory) is supported well by different online Git solutions (like github.com, bitbucket.org).
How can we make Eclipse import CHANGELOG, LICENSE, README files from the root of repository and show them in Project Explored/Navigator?
(a similar question was asked Configure github to use some other file as README but its goal was to make online tool render a README from subdirectory. I'm insterested in the opposite: Eclipse showing the README, ...)
解决方案For README.md
:
PARENT-1-PROJECT_LOC/README.md
Note, these files are shown in the Git Repositories view below the Working Tree node. Instead of using the trick described above, just open these files via the Git Repositories and then edit, save and commit them as usual.
这篇关于Eclipse从根目录显示自述文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!