1、生成.gitignore文件:在项目目录下打开git Bash Here,输入命令:touch .gitignore

2、在.gitignore文件中,输入

node_modules/

更多推荐