Hi sanjay singh,
Thank you for reaching out to us on Microsoft Q&A forum.
To create a new repository in Visual Studio, use the File > New > Repository… option. This will guide you through the process of setting up and linking the repository to GitHub.
If you don’t see this option or encounter issues, please try the following steps:
1.Verify Git Integration: Go to Tools > Options > Source Control and ensure Git is selected.
2.Update Visual Studio: Check for updates by going to Help > Check for Updates and apply any available updates.
3.Sign In to GitHub: Ensure you are signed in by going to File > Account Settings and logging into your GitHub account.
4.Install GitHub Extension: Install the GitHub extension if needed by going to Extensions > Manage Extensions.
Alternatively, if you have trouble with the File > New > Repository… option, you can create the repository manually by opening your project and using View > Team Explorer to publish to GitHub.
Please feel free to contact us if you have any additional questions.
If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community.
Thank you.