正确认识 Git

Getting Git Right: Learn Git with Tutorials, News and Tips

Git 基础知识

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 工作原理的基本概述:

  1. 使用 Git 托管工具(比如 Bitbucket)创建“仓库”(项目)
  2. 将 Git 仓库复制(或克隆)到本地计算机
  3. 向本地仓库添加文件,然后“提交”(保存)更改
  4. "Push" your changes to your main branch
  5. 使用 Git 托管工具更改文件,并提交
  6. 将更改“拉取”到本地计算机
  7. 创建“分支”(版本),进行更改,提交更改
  8. Open a "pull request" (propose changes to the main branch)
  9. "Merge" your branch to the main branch
Git 入门

热门文章

Sarah Goff-Dupont
Sarah Goff-Dupont

针对 CI 友好型 Git 代码库的五个提示

阅读文章
Matt Shelton
Matt Shelton

Git 还是 SVN?Nuance Healthcare 如何选择 Git 分支模型?

阅读文章
Matt Shelton
Matt Shelton

切换到 Git 时处理 Maven 依赖关系

阅读文章
查看所有文章

您知道吗...