git submit the project to a remote warehouse, simple implementation ignore node_modules file

  1. .Gitignore file is created in the root directory of the project

  2. Add the files you want to ignore in the file

    .DS_Store
    node_modules
    /dist
    
    # local env files
    .env.local
    .env.*.local
    
    # Log files
    npm-debug.log*
    yarn-debug.log*
    yarn-error.log*
    
    # Editor directories and files
    .idea
    .vscode
    *.suo
    *.ntvs*
    *.njsproj
    *.sln
    *.sw?
    
  3. Detailed settings, green Liao Yufeng teacher reference article

    1. https://www.liaoxuefeng.com/wiki/896043488029600/900004590234208

Guess you like

Origin www.cnblogs.com/korea/p/11031525.html