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.