Search code examples
gitclone

Negative patterns are ignored in git attributes


when I clone a remote url,this happends,how can I fix this,help

enter image description here


Solution

  • The message is clear : Negative patterns are ignored in git attributes.

    The gitattributes doc says:

    Unlike .gitignore, negative patterns are forbidden.

    So the way to fix it is one of:

    • change the .gitattributes content to not try to use negative pattern
    • escape the exclamation point with '!' as suggested.