Programmer's self-cultivation: GitHub of elegant code management tool

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

16557762-75cc79ca3d950efb.png

(2) VS2017 (for example) plug mounted GitHub

Before installation, opened in VS Team] [-] [connection management menu, this time not GitHub options, as shown below.

16557762-d1664b2ece89f259.png

Open the [Tools] - [] menu expanded and updated, search for and install "GitHub Extension for Visual Studio" plug-in, as shown below.

16557762-7f40a69e257a2455.png

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.

16557762-d2d77ad6cc8c2bc1.png

(3) is connected GitHub

Click [Connect] button, enter your user name and password, as shown below.

16557762-5d53ace5d22cb8fe.png

4. Tag Manager

(1) create a code repository

Below "GitHub", click [create] button, as shown below.

16557762-5fe79e639753d8de.png

Pop-up settings window, as shown below, parameter input finished, click [create] button to complete the creation.

16557762-bb05fe972b1e2864.png

Log GitHub browser, then you can see the code created in the repository, as shown below.

16557762-a781fd0081bfed12.png

(2) create a test project

In "Team Explorer - Home" page, click Create project, as shown below

16557762-a0a593456fb0e46c.png

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.

16557762-1c935c42796ae1a4.png

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.

16557762-ae985ff7790f5c91.png

In this case, the code created in the repository until the browser is open, you can see the new project, as shown in FIG.

16557762-013b5bda8e44d00c.png

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!

Guess you like

Origin blog.csdn.net/weixin_34088598/article/details/90927815