For more information about how to create a database on linux, see the following article:
Http://hi.baidu.com/mvp_xuan/blog/item/30f5b700a832f0261d9583ad.html
Http://hi.baidu.com/mvp_xuan/blog/item/216d52092a79228b0b7b826f.html
----------------------------------------------
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://code.google.com/p/msysgit/downloads/detail? 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 123.117.67.67 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 192.168.31.130 :~ /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.