Detailed steps for configuring GitHub Management Code in vs2012

Source: Internet
Author: User

I have always wanted to use git to manage small code that I have accumulated at ordinary times, that is, code other than work. Sometimes I write a small code on my own, and I need to copy it through a series of tools such as a USB flash drive or a network disk. Then I can go home to continue my homework on the basis of the original one. If you do not need to copy the file by using copy, it is easy to make mistakes, so that you cannot find a bit of code that is hard to write. Now, git is the most Nb-and widely used source code management tool. Many open-source projects have switched to GitHub. It is often seen that the brothers in the garden also come to learn git. For a cainiao, I feel like I don't want to hug git, and I will be beaten again.

I am a source code management instruction on a Windows 7 64-bit machine. The development tool uses vs2012.

First, describe the necessary configuration conditions.

1. If the GitHub website account is not registered in the https://github.com/This website can be.

2, git extensions http://code.google.com/p/gitextensions/downloads/list is a lot of, here you can download a variety of versions here.

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.

4. The GIT source control provider tool can also be downloaded directly from the vs extension tool.

Next, we will start the detailed configuration instructions step by step. This configuration seems very simple, but it is still quite troublesome to complete. I would like to record it here for later query, or to provide some help to git-learning friends.

Register and add a project repository with a GitHub account

Step 1: register a GitHub account

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

Enter the preceding information and click[Sign up for GitHub]You can complete the registration, or click[Sign up for GitHub]For more detailed registration.

Step 2: After successful registration, create a simple project warehouse first.

Enter information after clicking

Click [Create repository] to create the project repository.

Install git extensions

Step 1: Open gitextensions233setupcomplete. MSI and install it until next, as shown in

Step 2: Check the above[Install msysgit]And[Install kdiff],Next, kdiff and msysgit will be installed.

Step 3: Start to install kdiff3. kdiff3 is successfully installed by default.

Step 4: Start to install msysgit, And I will install it by default.

Next, you can install gitextensions successfully.

Tortoisegit Installation

Step 1 open the Installation File TortoiseGit-1.8.6.0-64bit.msi:

Step 2:

Step 3:

Step 4:

Step 5:

After the installation is completed, the installation is successful by default directly next.

Gitextensions settings

Step 1: Click. The interface shown in is displayed Based on the installation process above.

That is, only this one needs to be repaired. Click[Repair]

You can edit the user name and email, and then click OK.

Step 2: generate the key

Follow the prompts above to display the current interface

Click[Generate]

Save the generated key

Step 3: bind public key to GitHub

Follow the steps 1, 2, and 3, enter the key value, and click [add key] below to bind the key.

Git local synchronization settings

Git local clone. Click git clone to display the interface shown in the right figure.

Enter the address as shown in. Select the local directory or create a folder as needed.

The figure above also shows that the [load putty key] is disabled, and it hurts a lot. Later, Baidu finally found a solution.

Right-click and select the following settings.

Click Settings and perform the following settings to reload the putty key.

Reload and click OK.

It succeeded, but there are no files on git for the moment. Therefore, After cloning, only the. Git configuration file is in the folder.

Vs2012 Source Code Management Configuration

Create an application on the console, and click [extension and update] in the tool menu to download git source control provider. After installation, restart.

After restarting vs, go to tool ==>>>>>>>>source control ==>> select Source Code Manager

Then add a project in the local directory G: \ gittest. I have created a console application for testing.

Then, synchronize the project to the GIT server under.

Add files add file commit submit file (to local) Push push (to server)

There is an option in commit to submit and push

After clicking submit and push, enter the GitHub account and password to upload the file to the server. After the upload is complete, there is a prompt such as a small form. Let's take a look at the source code on GitHub.

Summary

Finally, the source code management on GitHub is successfully completed, and I am not grateful to myself, haha. Next, I will learn more about git operations.

Detailed steps for configuring GitHub Management Code in 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.