Reputation: 2813
I want to put my code on a Git repo
via Visual Studio,
This documentation says, rightclick on the master branch and press New local branch from.. but I do not have a master branch and the button is disabled in my case:
What am I doing wrong?
Upvotes: 1
Views: 52
Reputation: 2813
Alright it seem's like I really had to create the master branch
by myself first. I thought this would be added when creating the repo:
I did the following: Open the command line via right click on the Repo in Visual Studio
Type in: git commit -m "Initial Commit"
where Initial Commit
is the name of the commit.
The master branch was then created.
Upvotes: 1
Reputation: 1323115
One possible explanation is that you have created locally a Git repo, but have not created yet at least one commit.
Make sure you have added/committed your current modification in your local Git repo, and check again if the Visual Studio GUI is still displaying that option as disabled or enabled.
Upvotes: 1