Use Git with Visual Studio 2012 and 2013
What is GIT ?
i found the best definition of Git on Visual Studio itself , here it is :
Git is free and open source distributed version control system which handles small and large project very efficiently.Code posted using free account will be publicly available , for private repository you will have to buy paid plans of github.
Git has following features :
- Repository for your project
- Issues tracker for project
- Code review with code commenting and code highlighting
- Use Git Everywhere Desktop , On Web , mobile devices
- Good Documentation
- Easy to publish and host website using GIT HUB PAGES.
- Version Controlling.
Integration Git with Visual Studio :
For visual studio 2012 Git comes as an extension tool . you can download that tool from here : DOWNLOAD
For Visual Studio 2013 Git is included by default.
For Visual Studio 2013 Git is included by default.
Using Git with Visual Studio :
Step1: Choose GIT as Source Control :
After Installing Git extension for Visual Studio ,whenever you will create a new project it will ask you to check "Add to source control" check that property.
After Installing Git extension for Visual Studio ,whenever you will create a new project it will ask you to check "Add to source control" check that property.
After that it will ask to choose source control as shown in Figure 1.Choose git it will create a local repository.
Step2: Open Team Explorer :
View > Team Explorer
Step3: Apply Git Setting :
If you have user on github website then add the same credentials here otherwise Create a user on Github website then do the Setting.
View > Team Explorer
Step3: Apply Git Setting :
If you have user on github website then add the same credentials here otherwise Create a user on Github website then do the Setting.
Step4: Create a Repository on Git hub :
Login with your credentials on http://github.com and create a repository so you can map your Visual Studio Project.
Step5 : Publish your project to Remote Repository :
From screen Team Explorer click on Commits under Changes tab.Following screen will appear:
Give URL of repository you have created on github website and click on publish.Then Move to Home Screen and Give Commit Comment and Click on Commit.Come on Commits
Click On Push and your project will get uploaded. :) :) :)
Go on URL you will find your project there .
This is just a basic article which describe how to use Git with Visual studio and upload your project to guthub. Github provides many features which will be covered in my upcoming articles :) .
0 comments:
Post a Comment