Please try this
"Check which GitHub account you are logged into."
1\. Open Visual Studio (2019 or 2022).
2\. In the "Get Started" section, click "Clone Repository."
3\. In the "Browse a repository" window, click "GitHub."
4\. From the dropdown, select "Add an account" and choose GitHub.
5\. Enter your GitHub username and password, then click "Sign in" (Success).
6\. Go to your project, then commit and pull your code.
7\. Done!
Please try this
"Check which GitHub account you are logged into."
1\. Open Visual Studio (2019 or 2022).
2\. In the "Get Started" section, click "Clone Repository."
3\. In the "Browse a repository" window, click "GitHub."
4\. From the dropdown, select "Add an account" and choose GitHub.
5\. Enter your GitHub username and password, then click "Sign in" (Success).
6\. Go to your project, then commit and pull your code.
7\. Done!