top of page

how to create a git repository in visual studio

Updated: Feb 19


ever wonder how to create a git repository in visual studio? well wonder no more because in this tutorial, I'll be showing you how to do exactly that.


step 1 - open visual studio

open your visual studio. in this tutorial, I'll be using visual studio 2022.


step 2 - create your new project

start by choosing any programming language you prefer. Then, choose what kind of project you want to create.


step 3 - create your git repository

you can do that by going to visual studio's toolbar and go to git>create git repository


step 4 - sign in to your github account

the first time you create your git repository, you'll be asked to sign in to your github account. if you haven't made your github account then you can sign up for a github account. then, you can sign in to your github account in visual studio


final step, step 5 - push your project

after you signed in to your github account, you can now push your project to github. in github term, "push" means to save any changes you've made in your IDE/text editor while "pull" means to load saves from github


 

note: if you still don't understand then watch the video bellow


bottom of page