【问题标题】:fatal: cannot use node_modules as an excludesfilefatal: cannot use node_modules as an excludesfile
【发布时间】:2022-12-31 15:55:39
【问题描述】:

fatal: cannot use node_modules as an excludesfile You can see here I am written alright in .gitignore files but its giving me error fatal: cannot use node_modules as an excludesfiles

标签: linux ubuntu node-modules gitignore


【解决方案1】:

This error comes when you using linux os. check your parent directories and remove other .gitignore files if any.

Otherwise this error will surely occurs if in (Home directory)parent of our project where .gitconfig file show you can see image if there written excludefiles = node_modules simply change it to exclude = node_modules/ or delete that line.solved error

    猜你喜欢
    • 2022-12-02
    • 1970-01-01
    • 2022-12-01
    • 1970-01-01
    • 2022-12-01
    • 2017-05-23
    • 2017-06-02
    • 2020-10-19
    • 1970-01-01
    相关资源
    最近更新 更多