I have some existing code but now want to push this to GIT so I followed some steps and it states
<code>cd <localdir>
git init
git add .
git commit -m 'message'
git remote add origin <url>
git push -u origin main
</code>
<code>cd <localdir>
git init
git add .
git commit -m 'message'
git remote add origin <url>
git push -u origin main
</code>
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