1、想要忽略一些不想提交的文件,比如node_module 可以在目录下新建一个.gitignore的文件 然后在里面把文件名,或文件夹/名写上,比如
//.gitignore文件 node_modules/ .gitignore .vscode/