【问题标题】:.gitattributes export-ignore if in current directory but include if in subdirectory.gitattributes export-ignore if in current directory but include if in subdirectory
【发布时间】:2014-02-28 22:00:23
【问题描述】:

如何使用 .gitattributes 忽略父目录中的目录但将目录包含在子目录中?

例如,考虑一个/config 目录。根有一个/config 目录,也有一个位于/app/config

添加

config export-ignore

可以解决根目录/config 的问题,但它也会删除子目录/app/config

如何保留子目录/app/config

【问题讨论】:

    标签: git deployment web-deployment gitattributes


    【解决方案1】:
    猜你喜欢
    • 1970-01-01
    • 2022-12-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-02-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多