How to add your .net application to git hub repository

In this blog post I have listed out the steps to be followed while adding your .net application to git hub repository from visual studio IDE.I have listed out the steps using Visual Studio 2012 version. Steps  for later visual studio versions may differ.

 Open your .net application in Visual Studio 2012 or in any of later versions.


1) Go to File Menu then click on Add to Source Control.



2) Select the Git radio button(Microsoft Git Provider) from the popup.Click Ok. That will create a local repository.



3) Go to https://github.com/   GitHub website. Login or Register an account.I have a free package selected on my account.



4) Let's start Creating a new repository without selecting the option "Initialize this repository with a README".





  Above step will  create an empty repository with no Master branch.


  • Go back to Visual Studio IDE

  • Ensure that we have the Microsoft Git Provider selected under Tools then Options then Source Control under Plug-in Selection.

  • Open Team Explorer window from View Menu Option.

  • Select Home Icon Then Click on  Unsynced Commits




  • Go back to github URL and  copy the URL 




  • Go back to Team Explorer and Enter the GitHub URL into the yellow box

  • Click on Publish

  • Select Home then Click on Changes
  • Enter Comments in Comment text box.
  • Select "Commit and Push" from the drop down.


That's it... Now Your .net application is available on GitHub website.Now you can make changes to your application from IDE and commit changes to git hub repository. 
Note: In order to work with GitHub we need to install github desktop package from https://desktop.github.com/



If you find this post useful comment below.


Comments

Post a Comment

Popular posts from this blog

Download Excel File using AJAX in JavaScript

How to Capture Image using web camera in Asp.net and C#.NET / VB.NET

How to Install GIT ?