避免使用一个文件夹上的gitignore
我的存储库上有一个.gitignore文件,以防止上传某些文件。
但是我想在此存储库中有一个单个文件夹,允许使用各种文件。
如何在该文件夹上扫描Gitignore?
I have a .gitignore file on my repository to prevent uploading some files.
But I want to have a single folder inside this repository where all kind of files are allowed.
How can I scape the gitignore on that folder?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在
.gitignore
中否定模式,从而导致包含其他排除的文件。.gitignore
中的类似行将“取消分解”folderx
及其子文件夹中的所有文件。注意:
.gitignore
文件是从上到下解析的。 在末尾添加此行。此行之后的任何规则都可以覆盖其效果。
You can negate patterns in
.gitignore
, causing otherwise excluded files to be included.A line like this in
.gitignore
will "unexclude" all files infolderX
and its subfolders.Note: The
.gitignore
file is parsed from top to bottom. Add this line at the end.Any rule that comes after this line can override its effect.