I am getting error fatal: bad config file line 12 in .git/config
when I run any git command to do with git config
, except when I am in /c/Windows/System32. I have tried running git bash as admin and it doesn't make a difference.
When I look at my .gitconfig file in /c/Users// it looks like:
[core]
symlinks = false
autocrlf = true
[color]
diff = auto
status = auto
branch = auto
interactive = true
[pack]
packSizeLimit = 2g
[help]
format = html
[http]
sslCAinfo = /bin/<file>
[https]
proxy=<internal proxy>
[user]
name=<name>
email=<email>
[sendemail]
smtpserver = /bin/<file>
[diff "astextplain"]
textconv = astextplain
[rebase]
autosquash = true
Of course with the <name>, <internal proxy>, <file> and <email>
are replaced with the correct details. Also, the file has a file type of GITCONFIG
File and is called .gitconfig
.
My gitconfig file in /etc/ looks like:
[core]
symlinks = false
autocrlf = true
[color]
diff = auto
status = auto
branch = auto
interactive = true
[pack]
packSizeLimit = 2g
[http]
sslCAinfo = /bin/<file>
[https]
proxy=<internal proxy>
[user]
name=<name>
email=<email>
[sendemail]
smtpserver = /bin/<file>
[diff "astextplain"]
textconv = astextplain
[rebase]
autosquash = true
Again, the <name>, <internal proxy>, <file> and <email>
are replaced with the correct details. In this case, the file has a file type of File
and is called gitconfig
.
Can anyone please help resolve my issues so I can continue running git commands?