Git Gui for Windows database creation, clone, push, download, and merge

Source: Internet
Author: User
Tags ssh port

For more information about how to create a database on linux, see the following article:




This tutorial describes some common features and usage of Git Gui of gitk, including: database creation, clone, push, and download), merge (pull-merge ).


1. Download and install


Http:// Name1_git-1.7.10-preview20120409.exe

If you are a newbie, you only need to "next.


2. Create a database (init)

(If you need to create a database on your computer and manage your own code, read this section .)

First, create a folder, right-click the folder, and select"Git Init Here":

After performing this operation, you will find that there is an additional". Git", Indicating that the operation is successful.

Then, copy the source code to this directory (you can also directly init the source code ):

After this operation, right-click and click"Git Commit Tool", After entering the commit information, click"Submit:

Finally, let's take a look at History and right-click and select"Git History":

Enjoy ~! \ (^ O ^ )/~


3. clone)

(If you want to remove a remote database from a project to a local computer, see this section .)

Right-click the directory where you want to create a database and choose "Git Gui ":

In the pop-up window, click "clone a version library ":

The point is that this step is called the point because most of the tutorials in this step on the Internet are incorrect!

Then, enter the complete address of the database to be cloned in the Source Location, and enter or select a local Directory in the Target Directory. (Note that a new Directory is automatically created here, you do not need to create it in advance !)

Using ssh as an example,

The first figure below is an example of a LAN:

The above is the LAN case.

The following describes how to access the Internet IP Address:

Pay attention to the following points during Internet access:

(1) because the source location of the Gui is actuallyYou cannot change the default ssh port.Even if ": actual port number" is added, the following error message is returned:


Ssh: connect to host port 22: Bad file number fatal: The remote end hung up unexpectedly


(2 ),Cannot Use ~ No.To replace the Path Components of the home directory,You must use the absolute address of the git remote database..


Then, click "clone", and the system prompts you to enter the ssh password:

After the password is entered, it will be automatically cloned.Enter 3 passwordsPlease input it carefully again and again. A message similar to the following is displayed:


From :~ /Jmcx * [new branch] master-> origin/master


Close the current window and the git gui will pop up automatically. You can select "Browse files on master" under "version library" to view downloaded files, you can also view related files in Target Directory.


4. Upload (push)

(If you have cloned a remote database from a project, you need to modify the local code and upload it to the remote database. See this section .)

The prerequisite must meet the preceding"2. database creation"Operation. After modifying the file, perform "cache changes" under Git Gui, enter the description, click "Submit", click "Upload", and enter the password to automatically upload the file. Success should be:


5. Download (pull-fetch)

Right-click the git Gui in the directory where the Git library is located, find "remote" on the top, click it, and select "from .. obtain (fetch), expand automatically, and click "origin ":

Enter the password and click OK to complete the operation:

This is OK, but this is just a download and has not been merged with your local code. to merge the code, you still need to perform an operation. Please refer to the next section.


6. merge (pull-merge)

After fetch, click "Local merge" under "merge" in Git Gui. Generally, click "merge" by default:


The tutorial is coming to an end here.

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: 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.