freeCodeCamp/guide/chinese/git/difference-git-github/index.md

23 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Difference between Git and GitHub
localeTitle: Git和GitHub之间的区别
---
## Git和GitHub之间的区别
Git和Github是两回事。 [Git](https://git-scm.com/)是[版本控制系统](https://en.wikipedia.org/wiki/Version_control) ,而[GitHub](https://github.com/)是用于托管Git repos的服务并帮助人们协作编写软件。然而由于GitHub建立在Git之上并且因为许多网站和文章没有明确区分它们因此它们的名称相似因此经常会被混淆。
![Git不是GitHub](https://i.imgur.com/EkjwJdr.png)
### 混帐
Git是分布式版本控制系统。 Git负责跟踪内容的变化 - 通常是源代码文件。
有关更多信息,有[一篇关于Git本身](https://guide.freecodecamp.org/git)的[完整文章](https://guide.freecodecamp.org/git) 。
### GitHub上
GitHub是一家提供Git存储库托管的公司。这意味着它们提供了一个交钥匙解决方案可以在其服务器上托管Git存储库。这对于保留存储库的备份非常有用Git只跟踪随着时间的推移对文件所做的更改仍然需要备份repo并且有一个集中的位置来保存和共享您的代码。
GitHub不仅仅是一个Git存储库托管服务它还是一个[软件伪造](https://en.wikipedia.org/wiki/Forge_(software)) 。这意味着它还提供[问题跟踪器](https://en.wikipedia.org/wiki/Issue_tracking_system) [代码审查](https://en.wikipedia.org/wiki/Code_review)工具以及与其他人协作和创建软件的其他工具。
GitHub不是唯一提供此类服务的人。其主要竞争对手之一是[GitLab](https://gitlab.com) 。有关这方面的更多信息,请查看[有关Git托管](https://guide.freecodecamp.org/git/git-hosting)的[文章](https://guide.freecodecamp.org/git/git-hosting) 。