GitHub Use tutorial for VS2012

Source: Internet
Author: User

Transferred from: http://www.cnblogs.com/yc-755909659/p/3753355.html

Always want to use git to manage their usual accumulation of small code, except for the work of the Code. Sometimes own a small code, in the company wrote, it will be a USB flash drive or a series of tools such as a copy, and then go home to continue to work on the original basis. Copy to copy to the trouble not to say, is prone to error, resulting in a very difficult to write a bit of code will not be found. And for the time being, git should be said to be the most NB and most widely used source code management tool, and many open source projects are now turning to GitHub. Often see the Garden brothers also come to learn git, for a rookie feel no hug git will have to be dumped again.

I am the source code management instructions under the WIN8 32-bit machine. The development tool is using VS2012.

Let's start by explaining the prerequisites required for the configuration process

1, GitHub website account if not on the https://github.com/this site registration can be.

2, Git Extensions http://code.google.com/p/gitextensions/downloads/list is a lot of, here can download a variety of versions of the Oh, here choose to include Msysgit and KDIFF3 The latest version of the file.

3, Tortoisegit http://download.tortoisegit.org/tgit/here to download the time to pay attention to distinguish between 32-bit system or 64-bit system, here selected the latest 32-bit system 1.8.8.0 version.

4. Git Source Control Provider This tool can also be downloaded directly from the VS extension tool.

Next, start with detailed configuration instructions step-by-step. Say this configuration seems very simple, but the real whole is still more troublesome, specifically in this record, in case you can query later, or to learn git friends to provide some help.

1.GitHub account registration and Add Project Warehouse

First step: Register your GitHub account

First go to the https://github.com/homepage, if you do not have an account, then you must register first. The homepage can be registered directly:

Enter this information, then click [Sign up for GitHub] to complete the registration, if you have an account directly click on the upper right corner of [sign in ] login.

Second step: After successful registration, first create a simple project warehouse.

Click to fill in the information

Continue to click on [Create Repository] to complete the project warehouse creation work, this will be used to save the following.

2.Git Extensions Installation

First step: Open Gitextensions233setupcomplete.msi, install, always next to as shown

Second step: Check the above [install Msysgit] and [install Kdiff], continue next, then will install Kdiff and msysgit, according to the prompts to install.

3.TortoiseGit Installation

Open the installation file "Tortoisegit-1.8.8.0-32bit.msi" and follow the prompts to install it.

4.GitExtensions settings

Click on the application icon, the first time you start the language according to the prompts to select the Chinese, and then go to the settings interface:

Click the Repair button to enter the global settings, enter the username and mailbox on your GIF

Find the menu Tree option "SSH", click on it, then tick "PuTTY" on the right option, then click OK to enter the main software interface.

In the menu bar select "Tools"--"Puttv"--"Generate or Import Key", open Puttv key generator, click [Generate] button

Save the generated key

Step three: GitHub binds public key

According to the steps 1, 2, 3, and then enter the key value, click on the following [Add key] to complete the binding key.

Git local Sync settings

Git local clone, click on Git clone to display the interface as shown in the image on the right

URL input as shown in the address, the local directory according to the desired choice or create a new folder.

Load the Puttv key file saved above and click OK.

If [Load Putty key] is found to be disabled, the workaround is as follows:

Click the right mouse button, select the following settings

After you click Settings, you can reload Putty key with the following settings

Reload, and then click Confirm

Success, but temporarily no files on git, so the folder after cloning only. Git configuration file.

VS2012 Source code Management configuration

Create a new console application, and then on the Tools menu [extensions and Updates] to download git Source control Provider, restart vs after installation.

After restarting VS, in tool ==>> options ==>>source control==>> Select Source Control

Then in the local directory G:\GitTest add a project, I have temporarily created a console application to test.

Then synchronize the project to the GIT server under vs.

Add files adding file Commit commit file (to local) push push (to server)

In commit, there is an option to commit and push

After you click Submit and push, you can upload to the server by entering your GitHub account and password. After uploading, there is a hint like a small form, so let's take a look at the source code on GitHub.

That's all.

GitHub Use tutorial for VS2012

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.