我在存储库的根目录中有一个名为lib的文件夹,在 dist 文件夹中有另一个名为lib的文件夹。
我正在尝试使用.gitattributes
文件排除除 dist 以外的所有文件夹和文件,以便任何以 zip 或 tarball 下载的人都只会 git 分发文件
我的麻烦是以下.gitattributes
文件还删除了 dist 文件夹中的 lib 文件夹
.gitattributes export-ignore
.gitignore export-ignore
Cakefile export-ignore
swagger-ui.json export-ignore
bin export-ignore
lib export-ignore
node_modules export-ignore
src export-ignore
我尝试在 lib 之前添加一个斜线,在 lib 之后,似乎没有任何帮助
我如何使它工作?