SyntaxFix
Write A Post
Hire A Developer
Questions
I had the same issue. And the files that I needed to be committed were never declared in the .gitignore file as well.
.gitignore
In my case adding the files forcefully using the -f flag elevated to staging and fixed the issue.
-f
git add -f <path to file>