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.