Git GUI and Command line

Source: Internet
Author: User

Git GUI and Command line

Git manages code versions in two ways: GUI and Command line

GUI: There are platform restrictions. Currently, only Windows systems are supported. Linux (Unix) adopts the command line mode, and the number of Display files is limited each time the graphic interface is submitted (for example: A maximum of 20000 files can be displayed)

Command Line: no platform restrictions. supported in Windows and Linux (Unix and Mac OS X). You can use gid add dir/files to add files without restrictions on the number of files.

The following describes how to manage and operate Git:

1. GUI

First, download the Git graphical interface tool in Windows: msysgit or official download

Next, install msysgit, such as download the latest Git-1.7.10-preview20120409.exe after installation, the operation methods are Git GUI and Git Bash, the default is Gui Bash Only

After the installation is complete, Go to Start> All Programs> Git. There are two icons: Git Bash and Git Gui. Click the following to start the Git Gui:

You can create a new version Library (local), clone an existing version Library (remote), and open an existing version Library (local or remote)

For example, to clone an existing version Library (remote), for example, to clone and download a linux-kernel-source:

A. Click "clone existing version library" and enter the remote version Library (xxx) and local directory (xxx) in sequence, as shown in figure



2. Command Line

A. Git remote download

Git clone git: // git.kernel.org/pub/scm/ project_path

For example, to download linux-kernel-source, the Git command is as follows:

Git clone https://code.google.com/p/linux-kernel-source//E/Fruit/code_google/linux-kernel-tmp

For example, download the Linux kernel git.kernel.org

Git clone git: // git.kernel.org/pub/scm// home/homer/Linux-kernel-3.3.4

B. Local Git upload

Add a new file: git add dir/files

Submit the file: git commit

Upload File: git push

Linux git command parameters and Usage Details

Fedora downloads Git through Http Proxy

Install Git on Ubuntu Server

Create a Git repository on the server (Ubuntu)

Git simple tutorial in Linux (taking Android as an example)

Git authoritative guide PDF

Git details: click here
Git: click here

This article permanently updates the link address:

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.