Hi, it seems that every time I commit atm SourceTree crashes, I did a search here and the only solution I could find was to delete a draft commit message but I don't have one ( see attached )
It appears that my commits are working as can see my changes in Bitbucket but very annoying that it crashes
Basically, I had the same issue. The error occours because no .gitconfig will create during the setup of 3.2.4. or you have missed to check the checkbox to create user information during setup wizard.
Open Sourcetree and check "File status" - you will see that there no user is available:
Fix the Issue
To fix the issue open the explorer and navigate to: C:\Users\
Open the folder with your username
In this folder you should have a file with name ".gitconfig". If the file not exist, create it (It is no typo, the name will written with the dot at the beginning of the filename: .gitconfig
Open the existing / new file with an editor and add the following lines to the end of the file
name = User
email = Email
For "User" use a standard name (It is not the Windows Username meant)
For "Email" use a standard email Address
Save the file and start Source Tree again. You will see now, that a user is available in the "Status History".
BTW.: You can find your old user data in your last commits:
Go to "History" and select a commit. Here you can see in the commit information for the "Autor": Your old data. You should use the the same data as before to keep the structure:
Having the same problem and downgrade also did the trick for me, The problem is probably related with the pop-up that sourcetree shows if you did not configure git (name and email), because this was the first thing that I saw when I hit the commit button in the downgraded version.
edit: just noticed that Aggressor came to the same conclusion.
I also had this issue with 3.2.6, and it seems it has to do with credentials.
You should have the Full Name and Email address fields filled in Options, under Default User Information.
However, in case these fields are already populated and it still crashes on commit, you should leave them blank, make a commit (it will crash), then restart Sourcetree and fill the name and email address again, and that might solve it (it worked for me).
This works, I didn't have to revert the sourcetree version or anything.
As Alin suggested,
Just go to tools -> options and then edit the name and email address fields to leave them blank. Restart. Return to tools -> options and fill the name and email address. Restart again. Then everything worked for me :)
I think the crash is related to not having credentials set. The latest version worked on other pcs I had but it crashed on a new one I was setting up. When I switched back to 3.1.3 it asked me for my credentials before committing, whereas the most recent version just crashed.
Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events