64-bit Windows 7 successfully configured Tortoisegit using the GitHub server

Source: Internet
Author: User
Tags version control system

This tutorial explains the use of third-party tools Tortoisegit submit code to GitHub, which GitHub provides itself with a sync tool. There are video tutorials available on GitHub's own web-based tool.

Git is a distributed version control system that was originally written by Linus Torvalds and used as the management of Linux kernel code. Since its launch, Git has also been a big success in other projects, especially in the Ruby community. Currently, many well-known projects, including Rubinius and Merb, use Git. Git can also be used by deployment tools such as Capistrano and Vlad the Deployer.

Most of the current version control requires a server side, commit when committed to the server side. Git is a distributed management tool, but it can also be managed in a centralized way. For example, Billy created a new project, and Tom thought the project was interesting, and he wanted to play, he could clone the whole repo (reoisitories) to the local, and he had a repo in his clone project. Tom is free to make various commits to the repo until he is satisfied. Tom could tell Billy what he had changed, and if Billy felt good, he could fetch it from Tom and merge it locally.

As mentioned earlier, as a distributed version control system, there is no concept of the main library in Git, and each copy of the library can be used independently, and any inconsistencies between the two libraries can be merged. That's why, with the GitHub site, GitHub is based on Ruby and is developed in multiple languages, and the Ruby project is also very active. In GitHub, everyone can have multiple repo, and these repo are tied to the user. The user can clone repo, fork repo, watch repo, or follow other user, just like a social networking site such as Twitter or Plurk.

However, if you use free github, all repo are public and have a 300M capacity limit. If you want to have private repo, you need to pay. GitHub also features a scrapbook that pastes code into it and freely develops various branch.

GitHub can host a variety of git libraries and provide a web interface, but unlike other services like SourceForge or Google code, GitHub's unique selling point is the simplicity of branching from another project. Contributing code to a project is simple: first click on the "Fork" button of the project site, then check out the code and add the changes to the code base you just separated, and finally request a code merge from the project owner through the built-in pull request mechanism. GitHub has already been called the code player's Facebook.

Look at the above introduction, it feels good. Well, let's get moving now.

1 download and install related software

The main software involved here includes Msysgit and Tortoisegit.

Msysgit: Http://msysgit.googlecode.com/files/Git-1.7.4-preview20110204.exe

Tortoisegit: Http://code.google.com/p/tortoisegit/downloads/list (Choose your favorite version to download)

Baidu Cloud: Link: http://pan.baidu.com/s/1o6zGNai password: fd5f tortoisegit is divided into 32 and 64 bits, according to their own system to download,

The installation sequence is: Install Msysgit First, then install Tortoisegit. Because Msysgit provides the git core. If you do, it doesn't matter, you can go to Tortoisegit's setup interface (right-click Tortoisegit, Settings, General---Msysgit), manually specify Git The location of the core file (for example, C:\Program files\git\bin). Found no, when you enter the Setup interface, has been configured, have to say that the software is now very thoughtful.

2 Create your own account on the github.com

As I said earlier, GitHub is the programmer's Facebook, so we should have our own account. There are two types of accounts, free accounts and paid accounts. With free GitHub, all repo are public (publicly available) and have a 300M capacity limit, and if you want private repo, you'll need to pay. In a free exchange of attitude, or to apply for a free account. This process is very easy, I will not say more.

After registering, GitHub offers a number of tutorials to help you quickly learn how to use GitHub. The address is as follows:

Set up git tutorial: http://help.github.com/win-set-up-git/

Create a repo tutorial: http://help.github.com/create-a-repo/

Or go to the school network: http://www.imooc.com/learn/208

GitHub is basically learning to create a project, a project I created, the project name is new

3 Environment Configuration

Msysgit,tortoisegit all the way to the default installation. After installing Tortoisegit, the right mouse button can see

Click Setting Yes, you can see that the two software has been linked.

Figure 2 Setup interface for Tortoisegit

3.1 Building a test project new

For the first time, create a new folder, where I created a folder named New in the C drive. Select the new folder and right-click on "Git Create repository here ...", that is, create a local code base. The dialog box pops up and "OK" is selected. (PS: Do not respond to which check box) you will then be prompted to successfully create an empty code warehouse.

3.2 ToNew FolderAdd a file and update the project to the local repository

Create a new new.html file under the new directory and fill in some information. Then mail click new.html and select "Git add ..." To add the new.html file to the local new project.

3.3 Tortoisegit and Github build a remote repository

Tortoisegit using a key with an extension of PPK, you need to use the Tortoisegit Putty Key Generator tool to generate a Tortoisegit key for both the RSA key and PPK for GitHub. Find Puttygen in the Start menu and open

Then generate a key such as, and copy the key

Login to GitHub website, click on the settings icon in the top right corner--"sshkeys--" Add SSH Key

After processing key

The public key is added complete. Then go back to the Puttygen tool and click "Save private Key" in the dialog box above, save the private key locally, the file suffix is PPK (this PPK file will be used later).

Locate the new folder you created earlier, right-click on the folder, and find the settings, clicking on the following screen.

Fill in the project name in remote New,putty the information that needs to be filled in is the path to the private key file that we saved locally. The URL is copied to the right of GitHub into the "new" item, such as:

After filling out these three items, click "Add New" to display the remote information we added in the list on the left. Close the setting window when the association is complete.

3.4 Updating items to the remote repository

We can do the last job. Right-click the Project New folder, select Tortoisegit->pull, and download the file from GitHub.

After downloading, the previously submitted file is pushed to GitHub via push. You can then view your submitted files on the GitHub website.

Reference: http://our2848884.blog.163.com/blog/static/146854834201152325233854

64-bit Windows 7 successfully configured Tortoisegit using the GitHub server

Related Article

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.