error msg: key does not contain a section: trustexitcode

Pitterling September 28, 2015

Hi, on one of my pc i always get this error message when using sourcetree with git, like committing

"error: key does not contain a section: trustexitcode"

The task itself finishes successfully ... at the moment, i don't know where to check. Any advise?


thx, Peter

1 answer

1 accepted

0 votes
Answer accepted
Pitterling September 29, 2015

Fixed it myself. My global gitconfig file was damaged and contained only half of the data.

Shweta Kulshrestha February 3, 2019

what you fixed please let us know me and my team member are also facing issue from today morning

Pitterling February 5, 2019

Don't remember, but here is my (adjusted) gitconfig file:

name = Lastname, Firstname
email =
[difftool "sourcetree"]
cmd = '' \"$LOCAL\" \"$REMOTE\"
[mergetool "sourcetree"]
cmd = "'' "
trustExitCode = true
editor = 'C:\\Users\\XXXXXXX\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe' --wait

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events