How to solve git [ERROR] Invalid syntax in configuration ini file

Viewed 3125

I'm trying to commit some changes with git but, when I do it, I get the following error:

[ERROR] Invalid syntax in configuration ini file.

Couldn't find any information about it, anyone knows how to solve it? Thanks

3 Answers

Try commiting with the -n (--no-verify) flags

If your OS is Windows, search for the git-template and config folders inside your user folder and check if they have a security-tools folder inside it. You will need to manually add the folders with their contents if they are empty.

For me, I have nested .git folders in my project. leaving the one in root folder of my project and removing the nested .git folders resolves my issue

Related