I have some existing code but now want to push this to GIT so I followed some steps and it states
cd <localdir> git init git add . git commit -m 'message' git remote add origin <url> git push -u origin main I do jus that but I want to omit the obj and debug folders for example however when I try to this my pending committed files do not change.
I am little confused as to why its not respecting my ignore file? I must be doing something silly but not sure what

debug.binandobjshould already be picked up. Note that gitignore does not ignore tracked files. You didgit add ., so all files are tracked. You can only ignore untracked files