You should check if ‘C:\ProgramData/Git/config’ actually exists. If it doesn’t you can just create it and paste the following into the file:
[core]
symlinks = false
autocrlf = true
fscache = true
[color]
diff = auto
status = auto
branch = auto
interactive = true
[help]
format = html
[rebase]
autosquash = true
This worked for me.