...
That command only added header and cpp files - as opposed to doing git add *.
It’s important to avoid committing intermediate files to source control.
Another helpful techniq technique is to do things like git commit and look carefully at the files you are committing. Then doing git diff <fileName> on each one is a good way to check what you have changed - generally speaking this is a big way to avoid accidentally checking in mistakes that you didn’t intend to commit to source control. Think of it as operating on a patient - you want to be careful that tools haven’t been accidentally left in the patient before we sew them up.
...