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

Cannot stash - SourceTree

Natalija
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 21, 2019

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

1 vote
chai
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 13, 2020

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 :)

 

Phuc Vinh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 13, 2020

This solution worked for me...

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 22, 2019

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

Colin Cass
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 11, 2019

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.

jhorsman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 9, 2019

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
AUG Leaders

Atlassian Community Events