Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sourcetree error : 'git status' failed with code -1073741819

Started getting following error in Sourcetree suddenly. I dont know what is the reason behind it. but I am nit able to resolve it.

Not able to perform any operation.

enter image description here

like image 460
Varun Avatar asked Mar 14 '23 15:03

Varun


2 Answers

I ran into this as well. I followed the steps here and it solved my problem:

https://jira.atlassian.com/browse/SRCTREE-2018

Specifically:

Using the terminal and changing your directory to your repository you can do the following (making sure you back up your repository first, just in case):

rm .git/index git add .

Or if you have changes in your working directory you want to keep you can do the following:

rm .git/index git reset HEAD .

like image 110
Victor Chelaru Avatar answered Mar 19 '23 07:03

Victor Chelaru


I had the same issue and it was not fixed even if I deleted the .git/index and .git/index.lock file. I had to go to SourceTree Options -> Git and select "Use Embedded Git" to make it work. Before it was "Use System Git".

like image 24
dtmiRRor Avatar answered Mar 19 '23 09:03

dtmiRRor