如何从 .gitignore 中排除项目
How to exclude project from .gitignore
我有一个 Visual Studio 解决方案,在我的解决方案中我创建了一个名为:MyProject.Log
的新项目
我提交了,但发现没有什么可提交的。
然后我打开我的 .gitignore 文件,看到 *.log 和 [Ll]og/。所以我确定为什么 MyProject.Log
文件夹被排除。
What do I have to add in my .gitignore file so my new project is added but everything inside is filtered with the .gitignore patterns?
尝试将 !MyProject.log
添加到 .gitignore 文件。 !
反转排除。把它放在排除它的模式之后。
我有一个 Visual Studio 解决方案,在我的解决方案中我创建了一个名为:MyProject.Log
我提交了,但发现没有什么可提交的。
然后我打开我的 .gitignore 文件,看到 *.log 和 [Ll]og/。所以我确定为什么 MyProject.Log
文件夹被排除。
What do I have to add in my .gitignore file so my new project is added but everything inside is filtered with the .gitignore patterns?
尝试将 !MyProject.log
添加到 .gitignore 文件。 !
反转排除。把它放在排除它的模式之后。