I have just come across a situation where I have added all the files to git hub with git add .
command. However there are few files like I do not want to add to git hub like .gitignore which has .vscode .env and nodemodules but the issue is they do keep adding all the time when I perform the git add .
.
I tried to perform certain task,
Which is to untrack the file first using
git rm --cached .gitignore
and then
git config --global core.excludesfile .gitignore
but the result is no change.
can anyone help with this, what way it should be done correctly?
Thanks