Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

SourceTree crash on commit

Hello, 

Running Version 3.2.6 of SourceTree connect to a BitBucket Git repository.

When I run a Commit SourceTree crashes (every time) and the program to report the crash comes up. 

What can I look for to troubleshoot? 

 

Thanks,

 

~eric

 

14 answers

1 accepted

7 votes
Answer accepted

Hello Eric and welcome to the Community!

Thank you for reporting this issue upon commit. We can confirm this is caused by the lack of a username and email being set within Sourcetree. This issue will be resolved in a future release as well. To set a username and email, please review the following:

  • Within Sourcetree, select Tools > Options.
  • From within Options, ensure the following is entered:
  • Screen Shot 2019-10-09 at 12.06.43 PM.png

I hope this information proves helpful in allowing you to commit.

Regards,
Stephen Sifers

I have the exact same problem and I do have the username and E-mail filled out. What could be the other ways to fix this?

Like # people like this

I'm running into the exact same problem. I have both my user name and password filled in and it crashes on every commit.

Like # people like this

I also had this problem, although my user name and pass were filled in by default. I did the following and it worked for me:

1. I deleted the user name and password from Options, left the fields blank.

2. Made a commit (it crashed).

3. Added the user name and password again.

It now commits without any issues so far.

Hope this is helpful.

Like # people like this

Thanks for this. I was getting a crash when performing a commit, but only for a recently added repo. This fix worked.

Like # people like this

Thanks for this, this fix worked perfectly for me, i also had a ssh key uploaded to client "SSH Client Configuration" that was not required

Like # people like this

To be clear, the workaround above involves clearing, committing/crashing, and then re-entering the "Full Name" and "Email address" fields inside the "Default user information" panel on the "General" tab of the "Options" dialog box (as indicated in the screenshot, and not the user name and password).

Like # people like this

So for me, it worked for a couple days and then broke again. The fix did not help. I ended up rolling back to v3.1.3 which fixed the issue for a couple days again. Then I had the User Information popup every time I tried to commit, whereupon I had to delete the user.config file in my AppData folder.

It worked for me. Make sure to use your username instead of FullName

Like # people like this

Solution of Alin Baesu worked for me.

Hope the bug will not be back ...

I also had this problem, although my user name and pass were filled in by default. I did the following and it worked for me:

1. I deleted the user name and password from Options, left the fields blank.

2. Made a commit (it crashed).

3. Added the user name and password again.

It now commits without any issues so far.

Hope this is helpful.

Like # people like this

I already had both the full name and email filled under 'Default user information' in General options. Originally I had my real name, then I switched it to my Atlassian username. No difference, it still keeps crashing. 

Running on a Windows 8 and I'm using an application password with basic auth.

Removing the username and password and rentering the same worked for me.

Thanks for the solution.

The workaround presented did work for me.

But, will this issue be patched?  Rather ridiculous to have a git client crash on commit, seems like an important thing to fix.

 

Like Daren Thomas likes this

Username must be with out spaces. "MichealClarke" like this..

Thanks man ! your solution solved my problem !

Confirmed, username cannot have spaces. Sheesh.

Like Grégory Lamour likes this

I solved problem with comment of dev2webindiasolutions, Thank you

I also had this problem, although my user name and pass were filled in by default. I did the following and it worked for me:

1. I deleted the user name and password from Options, left the fields blank.

2. Made a commit (it crashed).

3. Added the user name and password again.

It now commits without any issues so far.

Hope this is helpful.

  • Within Sourcetree, select Tools > Options.
  • From within Options, remove Full name and Email address
  • perform in the command line:

git config --global user.email "PUT.YOUR.GIT@EMAIL.HERE"

git config --global user.name "PUT.YOUR.GIT.USER.HERE"

try to commit again. After it when I opened Options the Full name and Email address fields were filled-in properly.

(!) in the command line, you will probably need to change the current folder to one where GIT executable resides.

As an alternative way you can try to edit c:\Users\<YOUR.USER.NAME>\.gitconfig file like below and restart Sourcetree app.


[user]
name = PUT.YOUR.GIT.USER.HERE
email = PUT.YOUR.GIT@EMAIL.HERE
[difftool "sourcetree"]
cmd = '' \"$LOCAL\" \"$REMOTE\"
[mergetool "sourcetree"]
cmd = "'' "
trustExitCode = true

This solved the problem in the end. Thanks!

thank's a lot , this work for me!

adding name n email again wored for me as well

The git CLI method did it for me, although I didn't get the sourcetree fileds automatically repopulated, and it took a couple of attempts befor it worked.

Worked for me:

- Deleted username and email.

- It crashed.

- Re inserted username and email.

- Now it works :)

Same exact issue and Alin's instructions above worked like a charm.. Thanks for the help!

@mikegoldberg Welcome!

Read the previous responses. You should remove your account and re-add it.

thanks this worked for me as well but what we should  add in the option for selecting folder in repository

What worked for me: 

  • I already had my name and email under default user information in general options. It was still crashing.
  • What I was missing was the default project folder. Once I filled it in under General options, no more crashing.

I was able to resolve this by simply deleting the Username and Email completely, saving those changes, closing the program and restarting it, then entering the Username and Email manually.

Alin's solution worked perfectly for me.

I just removed my email and kept my full name. then it worked for me to commit

Hi,

Had the same issue when there is a space in the full name.

Without space it's working fine

SourceTree version 3.2.6.3544

I am seeing this issue with v3.2.6.3544 regardless of the state of the Default user information.

In case of, try without space

I tried that without success.

Hi @Eric Langley  delete the user name and password from Options, leave the fields blank

Make a commit, it will crash for sure. Then add the user name and password again then do a commit, it will work fine.

Also make sure that the Authentication tab is set up correctly or the commit can't work at all:

Capture.PNG

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Sourcetree

[dev team] Sourcetree for Windows 2019 Preview - Dark Theme

Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going.  The ...

3,452 views 19 19
Join discussion

Community Events

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

Events near you