Programmer's self-cultivation series (a): Elegant GitHub code management tools of

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 installed plug 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).

 

安装过后,再次打开【团队】-【管理连接】菜单,若出现GitHub选项,说明安装成功,如下图所示。

(3)连接GitHub

点击【连接】按钮,输入用户名和密码登录,如下图所示。

 

4.代码管理

(1)创建代码储存库

在“GitHub”下方,点击【创建】按钮,如下图。

 

弹出设置窗体,如下图,参数输入完,点击【创建】按钮,完成创建。

 

在浏览器中登录GitHub,此时可以看到创建的代码储存库,如下图所示。

(2)创建测试项目

在“团队资源管理器-主页”页面中,点击创建项目,如下图

此时,笔者创建一个简单的WinForm应用程序“HelloWorld”。

 

(3)上传测试项目

在“团队资源管理器-主页”页面中,点击【项目】-【更改】选项,如下图。

输入提交消息(这个是必录项),点击【全部提交】按钮,完成提交。

 

在“团队资源管理器-主页”页面中,点击【项目】-【同步】选项,点击【推送】按钮,将本地更改代码上传之GitHub。

 

 

此时,在浏览器端打开之前创建的代码储存库,可以看到新建的项目,如下图所示。

 

5.结语

至此,完成了从GitHub注册到代码管理的全部详细步骤,这篇博客只是抛砖引玉,GitHub优雅之处还需读者在实践和运用的过程中自己发现。在配置过程中,若有不懂之处,欢迎留言!

Guess you like

Origin www.cnblogs.com/aizai846/p/10959238.html
Recommended