Not Able to see create git repository tab in git under visual studio.

sanjay singh 25 Reputation points
2024-08-09T06:12:21.1966667+00:00

Hi Team,

I have connected my github account with visual studio and trying to create new repository from visual studio, but not able to get tab in visual studio--git--create repository .

help me to get this tab so i can create repository from visual studio to my github account.

for your reference i am sharing screenshot.Screenshot 2024-08-09 at 11.41.12

Thanks & Regards,

Sanjay Singh

Developer technologies Visual Studio Other
Community Center Not monitored
{count} vote

2 answers

Sort by: Most helpful
  1. Pradeep M 9,765 Reputation points Microsoft External Staff Volunteer Moderator
    2024-08-09T07:45:14.4066667+00:00

    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. 

     

    1 person found this answer helpful.
    0 comments No comments

  2. Michael Taylor 60,161 Reputation points
    2024-08-11T03:03:44.35+00:00

    You already have a repo open. Looking at your screenshot, you are in the main branch of your devops repo. You cannot create a new repo inside an existing repo. Once a repo is open the option to create a new one is removed. This would be by design.

    Restart VS and DO NOT open a project contained in GitHub nor open a repo. Then the option to create a new repo will appear both under the Git menu and also inside Git Changes window. As soon as you open a project or repo these options will go away.

    Note that in theory you could close the solution and then you should see the option again however, at least on my machine, closing the repo doesn't fully disconnect the repo so a VS restart is needed first.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.