gpt4 book ai didi

git - 我应该忽略在 Git 中提交的 launchSettings.json 文件吗?

转载 作者:太空狗 更新时间:2023-10-29 13:03:09 25 4
gpt4 key购买 nike

我发现这个相对知名的 GitHub 存储库,他们认为 launchSettings.json 文件(Visual Studio 2017 将其用于 .Net Core 项目)将被忽略 .

https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

为什么要忽略它?我以前在我工作的公司总是犯它,我很想知道是否有任何理由忽略它。

最佳答案

launchSettings.json 不应被忽略。。该存储库已更新为不忽略它:https://github.com/github/gitignore/pull/2705

Reasons for making this change:

Ignoring launchSettings.json does not make much sense. Now .NET CLI even considers this file when running with dotnet run, as you can read here.

This settings will be useful if shared among project members, so it should be commited to the repo.

Links to documentation supporting these rule changes:

https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-run?tabs=netcore2x

关于git - 我应该忽略在 Git 中提交的 launchSettings.json 文件吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47377058/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com