SyntaxFix
Write A Post
Hire A Developer
Questions
Git will recognise the file from the contents, rather than seeing it as a new untracked file
That's where you went wrong.
It's only after you add the file, that git will recognize it from content.