Git - Ignore node_modules folder everywhere

后端 未结 11 915

I have a project containing multiple other projects :

  • Main project
    • Mini project 1
    • Mini project 2

All containing <

11条回答
  •  孤街浪徒
    2020-11-28 00:50

    it will automatically create a .gitignore file if not then create a file name .gitignore and add copy & paste the below code

    # dependencies
    /node_modules
    /.pnp
    .pnp.js
    
    # testing
    /coverage
    
    # production
    /build
    
    # misc
    .DS_Store
    .env.local
    .env.development.local
    .env.test.local
    .env.production.local
    
    npm-debug.log*
    yarn-debug.log*
    yarn-error.log*
    

    these below are all unnecessary files

    See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

    and save the .gitignore file and you can upload

提交回复
热议问题