Visual Studio - Padlock inconsistency using GitHub

Peter Bishop 161 Reputation points
2023-03-02T12:36:55.12+00:00

As a team, we are using GitHub for version control within Visual Studio.

When a colleague adds a project to the solution, it has a blue padlock/red tick to indicate the checked-out status. However, when I add a project, this padlock is not displayed.

What would cause this inconsistency in functionality?

Thanks.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,572 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 25,466 Reputation points Microsoft Vendor
    2023-03-03T03:27:16.95+00:00

    Hi @Peter Bishop

    Welcome to Microsoft Q&A! 

    Are you using VS2022? 

    After adding projects or files, please go to Git Changes and make a Git commit. Then, the padlock icon appears. 

    For more details, please refer to: Make a Git commit in Visual Studio

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.