git commit ignore file.gitignore

After initialization, git will also track the files in node_modules. Generally, we only need to track the files you have created or modified. The installed dependency file node_modules does not need to be submitted to the remote. We need to configure it over there. Gitignore

  • New file.gitignore

.DS_Store
node_modules
/dist


# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

Finally, add the catalog according to your actual situation

Guess you like

Origin blog.csdn.net/weixin_43956521/article/details/110929788