什么是 GitHub?

GitHub 是全球最大的代码托管平台,拥有超过 1 亿名开发者用户。无论你是编写代码、管理文档还是协作项目,GitHub 都是最重要的工具之一。

What is GitHub?

GitHub is the world’s largest code hosting platform with over 100 million developers. Whether you’re writing code, managing documents, or collaborating on projects, GitHub is one of the most essential tools available.


核心概念 | Core Concepts

仓库 Repository(Repo)

仓库是存放项目所有文件的地方,包括代码、文档、图片等。每个项目通常对应一个仓库。

A repository is where all your project files live — code, docs, images, and more. Each project typically has one repository.

提交 Commit

提交是对文件的一次保存记录,每次提交都会记录"谁、在什么时间、改了什么"。

A commit is a saved snapshot of your changes — recording who changed what and when.

分支 Branch

分支让你可以在不影响主代码的情况下进行开发,完成后再合并回主分支。

Branches let you develop features without affecting the main code. Merge when ready.


第一步:注册账号 | Step 1: Create an Account

  1. 访问 github.com
  2. 点击右上角 Sign Up
  3. 输入邮箱、密码、用户名
  4. 完成邮箱验证

第二步:创建第一个仓库 | Step 2: Create Your First Repository

  1. 登录后点击右上角 +New repository
  2. 填写仓库名称(如 my-first-repo
  3. 选择 Public(公开)或 Private(私有)
  4. 勾选 Add a README file
  5. 点击 Create repository

恭喜!你的第一个 GitHub 仓库创建成功了。

Congratulations! Your first GitHub repository is ready.


下一步 | Next Steps