Git Gui for Windows Library, cloning (clone), upload (push), download (pull), merge (GO)

Source: Internet
Author: User

From:http://hi.baidu.com/mvp_xuan/blog/item/2ba062d8cd2c9fc939012fae.html

For more information on Linux build libraries, see the article:

Http://hi.baidu.com/mvp_xuan/blog/item/30f5b700a832f0261d9583ad.html

Http://hi.baidu.com/mvp_xuan/blog/item/216d52092a79228b0b7b826f.html

——————————————————————————————————————————————

This tutorial will cover some common features and how to use GITK's Git GUI, including: Build, clone, upload (push), download (pull-fetch), merge (Pull-merge).

——————————————————————————————————————————————

1. Download and install

Http://code.google.com/p/msysgit/downloads/detail?name=Git-1.7.10-preview20120409.exe

Install it, the novice, all "next" can.

2. Build Library (INIT)

(If you need to build a library and manage your own code on a native computer, see this section.) )

First, create a new folder, then right-click on the folder and select "Git InitHere":

After performing this operation, you will find a hidden folder with ". Git" In this folder, indicating that the execution was successful.

Then, copy the source code into this directory (or direct init directly at the source code):

After this operation, then click the right mouse button, click on the "Git Commit Tool", fill out the Commit, click " Submit " to:

Finally, let's look at the history and right click on the mouse to select "GitHistory":

enjoy~! \ (^o^)/~

3. Cloning (clone)

(If you're under an item and you need to drop a remote library down to your native computer, see this section.) )

In the directory where you need to set up the library, right-click: "Git Gui":

In the pop-up window, click "Clone already Repository":

The point is that this step is called the focus because most of the tutorials on the Web are wrong!

then enter the full address of the repository to be cloned in source location, enter or select a local directory in target directory (note that a new directory will be created automatically here, and you do not need to build it beforehand!) )

I take SSH as an example,

The first image below is an example of a local area network:

Above is the LAN case.

Here's how to access an extranet IP:

There are several points to be aware of when accessing an extranet:

(1), because the GUI source location here can not replace the SSH default port , even if the ": Actual port Number" will also return the following error message:

————————————

Ssh:connect to host 123.117.67.67 port 22:bad file number
Fatal:the remote end hung up unexpectedly

————————————

(2), you cannot use the ~ number to replace the path component of the home directory, you must use the absolute address of the GIT remote repository .

Then click "Clone", you will be prompted to enter the password for SSH:

Enter the password, will be automatically cloned, here may have to enter the password 3 times , please enter it carefully. A similar message will be prompted after success:

——————————————————————————

From 192.168.31.130:~/JMCX
* [New branch] master, Origin/master

——————————————————————————

When you close the current window, the Git GUI pops up, and you can view the downloaded file by selecting "Browse for Files on master" under "Repository", or you can go directly to target directory to view the relevant files.

4. Upload (push)

(If you have already clone a remote library under a project, you need to modify the local code to upload to the far end library, see this section.) )

Prerequisites need to meet the completion of the above "2, build the library " operation. After modifying the file, under the Git GUI, make "cache changes", then enter the description, click "Submit", click "Upload", enter the password and return to the automatic upload. Success should be:

5. Download (Pull-fetch)

Right-click the git Gui in the directory where the Git repository is located, find "remote" at the top, and then select "From." When you click Open. Get (Fetch) ", automatically expand, click" Origin ":

Then enter the password and click OK to complete the operation:

This will be OK, but this is only downloaded, and you do not merge with your local code, to merge, you need to do an operation, see the next section.

6. Merger (Pull-merge)

After the fetch, click on "Merge" under "merge" in Git Gui, and in general it is the default condition to click on "Merging" directly:

————————————————————————————————————————————

The tutorial is over here.

Git Gui for Windows Library, cloning (clone), upload (push), download (pull), merge (GO)

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.