1. Introduction
Code management is a programmers often encounter a problem, a lot of children's shoes will save the code to a local hard disk, this method chaotic management, there is also the risk of missing codes, and version can not control, so develop good habits programmer's code management compulsory. Among the many code management tools author of this focus on GitHub.
2.GitHub Introduction
GitHub is oriented open source and proprietary software project hosting platform, since only supports git repository as the only format hosted, named GitHub.
GitHub on April 10, 2008 formally launched, in addition to the Git repository hosting and basic Web management interface, also offer a subscription, discussion groups, text rendering, online file editor, collaborative map (report), code snippets share ( Gist) and other functions. At present, it has over 3.5 million registered users, the number of hosted version is also very much, many of whom are well-known open source projects Ruby ON Rails, jQuery , Python and so on.
3.VS2017 configuration GitHub
(1) Registration GitHub account
Registration link: https://github.com
(2) VS2017 (for example) plug mounted GitHub
Before installation, opened in VS Team] [-] [connection management menu, this time not GitHub options, as shown below.
Open the [Tools] - [] menu expanded and updated, search for and install "GitHub Extension for Visual Studio" plug-in, as shown below.
Note: If here was not successfully installed (wait too long to download does not move), you can click on the link https://visualstudio.github.com/ download the plug-in installed on their own (the installation of the need to open the VS closed).
After installation, open again [team] - [Management] menu connection, if GitHub options appear, the installation is successful, as shown below.
(3) is connected GitHub
Click [Connect] button, enter your user name and password, as shown below.
4. Tag Manager
(1) create a code repository
Below "GitHub", click [create] button, as shown below.
Pop-up settings window, as shown below, parameter input finished, click [create] button to complete the creation.
Log GitHub browser, then you can see the code created in the repository, as shown below.
(2) create a test project
In "Team Explorer - Home" page, click Create project, as shown below
At this point, I created a simple WinForm application "HelloWorld".
(3) upload test project
In "Team Explorer - Home" page, click on the [Project] - [change] option, as shown below.
Enter commit message (this is a must record entry), click on [all] submit button to complete the submission.
In "Team Explorer - Home" page, click on the [Project] - [synchronization] option, click [push] button to upload the code of local changes GitHub.
In this case, the code created in the repository until the browser is open, you can see the new project, as shown in FIG.
5 Conclusion
This completes the steps to register all details of the code from GitHub to management.
I hope everyone has to help! Interested in learning C / C ++ programming can be added to the author of Introduction to Exchange Group Oh!