Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TortoiseGit shows clean directory as conflicted

I have a git repository that I'm working on which I am using TortoiseGit to manage in Windows. Show modifications and diff show that there are no differences between working directory and head. However, a little red X shows up over one of my folders.

Is there a way to reset the status of TortoiseGit? Are there differences I can't see?

like image 484
IslandCow Avatar asked Sep 28 '11 21:09

IslandCow


2 Answers

Assuming it's not a bug in Tortoise Git--I don't use it, so I don't know much about it--it depends what happened most recently. I think the most likely situation is that you ran into a merge conflict during a rebase and forgot to finish the rebase. If that's the case, you need to complete the rebase one way or another: git rebase --abort or git rebase --continue. A git status will give you a clue. If it shows that you're not on a branch, but you expect to be, then you're probably in the middle of a rebase.

Edit: This guy claims it's a problem with the TortoiseGit cache in Windows. Try killing the TGitCache.exe process and restarting explorer. I remember a problem like this in TortoiseSVN back in the day...

like image 194
Ryan Stewart Avatar answered Oct 02 '22 07:10

Ryan Stewart


Close all Explorer windows (directory windows)

Open Process explorer: Sort by name. Find TGitCache.exe. Click on it and press the END PROCESS button.

Reopen the explorer and voilla.

like image 29
pashute Avatar answered Oct 02 '22 07:10

pashute