Reputation: 4452
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.
Upvotes: 4
Views: 10687
Reputation: 2308
Try doing this
close Sourcetree window
open Sourcetree Bookmarks view
Upvotes: 0
Reputation: 599
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".
Upvotes: 3
Reputation: 1185
I'm facing with the same issue. My software configuration is:
I updated Git to v2.12.2.windows.2 (the latest build) and the problem disappeared.
Upvotes: 1
Reputation: 11
This is happening because Git was installed and then SourceTree with Git inside. This generated a conflict between the two installed GITs. You need to uninstall Git or in the SourceTree installation point where it is installed.
Upvotes: 1
Reputation: 4807
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 .
Upvotes: 3