For me I didn’t have any uncommitted changes or any untracked files, and Visual Studio 2015 still presented the warning.
- Close the solution in Visual Studio, exit Visual Studio.
- Open
Git Bash
(or your favorite Git UI) - Navigate to your repository (or open the repository with the Git UI)
git pull
(or perform pull on the Git UI)- Merge happens (hopefully no conflicts, as in my case),
vi
opens (or the default merge resolution tool) :wq
then pressENTER
invi
(or calm handle the merge tool which popped up optionally) and hopefully this resolves it just like for me.- Start Visual Studio 2015, open the project
I added a safer step-by-step by instructing closing and opening the solution and Visual Studio. This may be over cautious, and maybe a reload would be enough. This symptom could be a bug of the Visual Studio Git integration parts, and maybe it’ll be resolved in the future.