Easy guide to Getting started with git

Source: Internet
Author: User
Keywords Easy Guide
Tags .mall aliyun clone code control control system create developed

Git is an open source distributed http://www.aliyun.com/zixun/aggregation/9591.html "> version control system for efficient, high-speed processing from very small to very large project versioning.

Git is an open source version control software developed by Linux Torvalds to help manage Linux kernel development.

Features of Git:

Git has the following features from a general developer's point of view:

1: Clone the database (including code and version information) from the server to a single computer.
2: Create a branch on your own machine and modify the code.
3: Submit code on a stand-alone branch that you create.
4: Merge Branches on a single machine.
5: Create a new branch, fetch the latest version of the code from the server, and then merge with your main branch.
6: Create patch (patch), send patch to main developer.
7: Looking at the feedback from the main developer, if the main developer discovers that there is a conflict between the two general developers (the conflicts they can resolve together), they will be asked to resolve the conflict before being submitted by one of them. If the main developer can resolve it himself, or if there is no conflict, pass.
8: Conflict resolution between the general developers, developers can use the pull command to resolve conflicts, resolve the conflict and then submit a patch to the main developer.

Installation:

Download git OS X edition

Download git Windows version

Download git Linux version

Create a new warehouse

Create a new folder, open it, and then execute

Git init

To create a new Git warehouse.

Check out the Warehouse

Execute the following command to create a cloned version of a local warehouse:

Git clone/path/to/repository

If it's a warehouse on a remote server, your command will look like this:

git clone username@host:/path/to/repository

Workflows

Your local warehouse consists of three "trees" that git maintains. The first is your working directory, which holds the actual file, and the second is the buffer cache (Index), which, like a cached area, temporarily saves your changes and, finally, head, points to the results of your most recent submission.

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.