相关疑难解决方法(0)

共享 Git 存储库中的 .editorconfig

我已经准备好.editorconfig要在多个 Git 存储库上使用的文件。每个存储库都包含一个 Visual Studio 解决方案 (C#)。我的第一个想法是将.editorconfig文件放在自己的存储库中,然后将其作为子模块包含在所有“解决方案存储库”中。然而问题是:子模块将位于子文件夹中。因此,包含的.editorconfig内容不会应用于整个项目/解决方案(而仅应用于子文件夹及其子文件夹)。在我看来,我也无法.editorconfig在解决方案配置文件 ( .sln) 中指定解决方案范围的路径。

.editorconfig在多个 Git 存储库之间实际共享单个文件的最佳方法是什么?该.editorconfig文件仍然需要进行版本控制(从而在用户之间共享),即。没有本地 editorconfig 配置。

git visual-studio editorconfig

4
推荐指数
1
解决办法
1761
查看次数

标签 统计

editorconfig ×1

git ×1

visual-studio ×1