【问题标题】:.gitignore not appearing in VScode's file explorer.gitignore 没有出现在 VScode 的文件资源管理器中
【发布时间】:2020-08-31 08:57:42
【问题描述】:

在标准的 Windows 资源管理器中,repo 包含所有预期的文件:A snip of my file directory

在 VSCode 中,.gitignorefile does not display in the explorer。它看起来仍然可以正常工作(.gitignore 中的所有文件都被忽略),但它带来了烦恼。最值得注意的是,.gitignore 文件确实出现在我机器上的other repos 中。

我们将不胜感激。

【问题讨论】:

    标签: visual-studio-code gitignore


    【解决方案1】:

    签入您的项目文件夹.vscode/settings.json

    files.exclude 部分你很可能会看到这条线

    "**/.gitignore":true

    注释掉或删除它,该文件将出现在 Visual Code Explorer 中

    【讨论】:

      猜你喜欢
      • 2016-11-11
      • 2019-05-06
      • 1970-01-01
      • 2013-01-10
      • 1970-01-01
      • 2023-01-25
      • 2012-04-28
      • 2022-11-11
      相关资源
      最近更新 更多