Share via


All files are locked in Solution Explorer. Why? How can I start editing them again?

Question

Tuesday, December 19, 2017 8:03 PM

I use Visual Studio as a single person (no team). I commit changes to a local git repository for each project that I work on. I have never sent anything to a remote repository, to my knowledge. While working on a project, the Solution Explorer suddenly (meaning that I don't know what I did that caused this to happen) showed padlocks next to many of my files and Pending Changes next to some of them. So I made another Commit of all changes, thinking that must be what was expected. Now, every file has a padlock next to it in Solution Explorer and I cannot navigate to subfolders in the explorer. If I edit code, then a red check mark appears next to the file. 

How can I get the files unlocked? What did I do to lead to pending changes and locked files?

Thanks.

All replies (1)

Wednesday, December 20, 2017 6:38 AM

Hi,

Welcome to MSDN forum.

You will see the blue padlocks in solution explorer after making the commit and a red check mark when editing code.

Does your Team explorer look like the following screenshot?

You can also have a look at here: https://berniecook.wordpress.com/2013/01/13/getting-started-with-git-and-visual-studio-step-by-step-guide/

Best regards,

Joyce

Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].