This seems like you have a directory in your project that is literally called ... which git, and probably Windows struggles with. Could you maybe try and delete that directory?
Never the less, where did you init git? It seems you did it in the parent dir of your godot_test.
If the godot_test is the directory that you have created with a new project in Godot, than you would git init inside that dir.
I would like to see a “tree” inside your “git-testing”. I have the impression that your folder structure is setup a little bit wrong. Where you have .git folders.
You could just delete every .git folder and start over.
The .gitignore should be on the same level as your git. both inside your project.
The .gitignore is just a textfile with the rules which folders or files to ignore.