Git is a free and open-source version control system, originally created by Linus Torvalds in 2005. Unlike older centralized version control systems such as SVN and CVS, Git is distributed: every developer has the full history of their code repository locally. This makes the initial clone of the repository slower, but subsequent operations such as commit, blame, diff, merge, and log dramatically faster.
Git also has excellent support for branching, merging, and rewriting repository history, which has led to many innovative and powerful workflows and tools. Pull requests are one such popular tool that allows teams to collaborate on Git branches and efficiently review each other's code. Git is the most widely used version control system in the world today and is considered the modern standard for software development.
以下是对 Git 工作原理的基本概述：
- 使用 Git 托管工具（比如 Bitbucket）创建“仓库”（项目）
- 将 Git 仓库复制（或克隆）到本地计算机
- "Push" your changes to your main branch
- 使用 Git 托管工具更改文件，并提交
- Open a "pull request" (propose changes to the main branch)
- "Merge" your branch to the main branch