我的.gitignore文件中有此文件,唯一认为被忽略的是node_modules。
# not adding folders
public/images/weeks
.history
.vscode
node_modules
我想添加git add .gitignore..
到.gitignore文件中,我添加了一个node_modules
文件,并向VCode询问了。然后,我手动添加了其他文件夹并提交更改。
当我将其推送到GitHub仅排除node_modules
时,我做错了什么?
我是否需要git add..somefolder..
所有需要添加.gitignore的内容