How to use the Git client tortoisegit (Windows system)

Source: Internet
Author: User
Tags git client

This article mainly describes the use of Git client tortoisegit (Windows system), the need for friends can refer to the following

This article environment:

Operating system: Windows XP SP3

Git client: tortoisegit-1.8.8.0-32bit

First, install the Git client

All installations are by default!

1. Install support software

Msysgit:https://code.google.com/p/msysgit/downloads/list?q=full+installer+official+git

Currently the latest version is v1.9.0.

2. Installing Tortoisegit

First, you install Windows Installer 4.5.

Then, install Tortoisegit-1.8.8.0-32bit.msi (currently the latest version)

Finally, install the Tortoisegit Chinese language pack

Tortoisegit-languagepack-1.8.7.0-32bit-zh_cn.msi

Second, the configuration, use Tortoisegit

1. Set to Chinese interface

2. Build the Repository

Right-click on any empty folder and select "Git here to create repository"

3. Clone Library

Right-click on the folder above and select "Pull"

(1) Managing the remote

Figure 2-3-1-1

Figure 2-3-1-2

Where the URL is the git address of the remote repository

Note that you must change the "localhost" to an IP address, otherwise the following error will occur: Git did not exit cleanly (exit code 128)

(2) Generate PPK file

From the Start menu, select "PuttyGen" in "Tortoisegit"

Click "Generate" button, then, the mouse in the image of the red box in the area of the movement, you can generate a key.

Click the "Save private Key" button to save the generated key as a PPK file.

Determine the build.

Save to the address in Figure 2-3-1-2

(3) Complete Clone library

4. Submit a local repository

The newly created file icon in the local repository is

(1) Add to local library

Right click on the marked file, select "Add"

At this point, the file icon changes to indicate success in adding to the local library.

(2) Submit to local library

Right-click on the marked file, select "Git commit (C) ....", "Master" ... "

A prompt will appear, setting the user name and mailbox.

Set the user name, mailbox, and signing key (PPK file)

Enter the log information to complete the submission.

5. Push local library to server

If all the folders and files are icons, then we can push the local library to the version server.

In the root directory of the local repository (D:\MYDOC13\SSFC), right-click, select "Tortoisegit"-〉 "Push"

Complete the push.

------------------------------------------Xiaobin_ Hlj80-----------------------------------------------Full-text end------------------------------

FAQ:

1. About: User name and email

The user name and mailbox are assigned by the version server. Is that we set up the user name and mailbox on the version server and then use it on the client.

2. Cancel the last "Commit" action

Right-click the Git Library folder, select the "Git" tab, click on the "Show Log" button, select the location to roll back, and right-click to select "Reset" Master to ... "

Click "OK" to complete the cancel operation.

How to use the Git client tortoisegit (Windows system)

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.