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

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 crashed and I lost all uncommitted code on a submodule

I was committing a change on the main repo (which contains a few submodules) and was typing up the commit message.  I decided that I wanted to change my message, and used the CMD+delete to clear the line, but that key combination does something else in Sourcetree.  I often make this mistake, but its usually benign (just throws a prompt asking if want to back out of committing).  However, in this case, it threw a couple of warning messages, and deleted my submodule (I now had a change in .gitmodules showing the submodule was deleted, and the actual submodule folder removed).  At this point I have now lost a whole days worth of work.


Luckily after some searching, I was able to recover 90% of my work from PyCharm's local history, but not before I nearly had a panic attack.


Sourcetree usually crashes on my about once every day or 2, which I think may be memory issues, but never anything like this.  I unfortunately do not have the error messages that popped up, nor did I choose to send the error report, so there isn't really much I can contribute to the actual error that occurred, other than it crashed after hitting CMD+delete in the commit message text box.

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Atlassian Community Events

Hello from city #68 on the road!

Hello from my sixty-eighth city in a long-term RV trip I started in 2015!  I've traveled all over the US staying in different cities and states for just a few days up to many months. This week I...

40 views 1 7
Read article

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