error msg: key does not contain a section: trustexitcode

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
Accepted answer

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

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

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

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Friday in Agile

Are you a Jira Service Desk agent? We want to talk to you!

Are you a whiz at handling tickets and looking at how you can further optimize your workflow with automation? Do you tackle detailed customer support questions while simultaneously getting flooded wi...

101 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you