Create Blank Repository and clone it at your local

Create blank Repo on Git Hub

  • Open Github and create a blank Repository
    • Name: AspNetecommMicroService
    • Add Read Me and Git Ignore file

 

 

Clone above created blank repository at your local

  • git clone <url.git?   // in respective folder, where you want to clone

for the first time of creating clone, it ask for git credential to crate link with git hub and local repository

 

 

Pull above repository at your local

  • At your local open visual studio
  • add blank solution for your git repository 
    • file > add new Project
    • Search Blank > Double click Blank Solution
      • Name: aspnet-microservices
      • Path should be same as our Git Repository Root  - where we clone our blank repository
      • Click Create
    • A Blank Solution Project will be created- to be used as base of our micro service
    • To avoid confusion Rename folder name “aspnetrun-microservices” as “src”. SLN file name will remain as it is

 

 

 

Push Back our changes at Git

Open Solution in Visual Studio
Inside src folder double click aspnetrun-microservicessln file
Click Git Changes Tab below 
Add Comment: Initial, select from dropdown “Commit All and Push”

 


Related Question