Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Cannot stash - SourceTree

Hi!

I have problem when I try to stash mu changes on source tree. I get error:

git -c diff.mnemonicprefix=false -c core.quotepath=false stash save test
Cannot save the current worktree state
Completed with errors, see above.

I tried updating SourceTree to 3.0.15, it didn't help. Then I tried deleting and installing it again. That didn't help ether. I didn;t have this problem until a month ago. It worked fine before. 

I will be thankful if someone can help me with this issue!!!

2 answers

I had the same problem. To solve it I changed Options->Git->Git Version from 'Embedded' to 'System' and it workedimage.png

Welcome to upvote me also at stackoverflow :)

 

This solution worked for me...

0 votes

Hi Natalija, welcome to the Community!

Have you tried performing this operation in the command line? Are you getting the same error?

If the command line works, then the issue is in Sourcetree. Can you check the logs and let us know if there's any additional information there? You can find them at Sourcetree log location.

If the issue persists, can you also answer the following:

  1. Are you on Windows or Mac?
  2. Do you have any anti-malware software?

Cheers!

Ana

I've had this exact issue for a very long time, since one of the early 2.x versions.  It worked prior to that.  I use system git, and stashing from command line has worked all long.

EDIT: I take it back: running the exact same command in git bash yields the same result, but using 'git stash push' works correctly. Could be a git problem.

I had the exact same problem running SourceTree 2.6.10.0 on Windows 10.

Symptoms:

  • Git stash in SourceTree raises the `Cannot save the current worktree state` error.
  • `git stash save message` raises the same error

Workaround:

  • `git stash` still works

Solution:

  • Installed Git version 2.21.0.windows.1 from the link @Colin Cass mentioned.

Suggest an answer

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

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

3,247 views 4 5
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