Git 基础
50 课
用 Git 做版本控制——仓库、提交、分支和 GitHub 基础。
-
1 什么是 Git?
introduction 到 version control and 为什么 Git 是 industry 标准 for tracking 更改.
-
2 什么是 仓库?
理解 Git 仓库 — .git folder, 工作 directory, and staging 区域.
-
3 git init
创建新 Git 仓库使用 git init and 什么 happens 后面 scenes.
-
4 git 添加
Staging 更改使用 git 添加 — 如何 prepare files for 下一个提交.
-
5 git 提交
保存 snapshots 到 history 使用 git 提交 and 编写好 提交消息.
-
6 git 状态
Inspecting 状态的 你的仓库使用 git 状态 — 你的 Git dashboard.
-
7 git log
Exploring 提交 history 使用 git log — viewing, 筛选, and 格式化 past 提交.
-
8 GitHub 基础
连接到 remote 仓库, pushing, pulling, and collaborating on GitHub.
-
9 git 克隆
Downloading 仓库使用 git 克隆 — shallow clones, 深度限制, and 克隆 workflows.
-
10 git 推送 & git 拉取
Syncing 使用 remotes using git 推送 and git 拉取 — upstream tracking and force 推送 safety.
-
11 git 分支
创建 and managing 分支使用 git 分支 — isolating features and parallel development.
-
12 git 合并
组合分支使用 git 合并 — 快-向前合并, three-方式合并, and 合并提交.
-
13 git checkout & git 切换
切换分支 and restoring files 使用 git checkout and newer git 切换 command.
-
14 git stash
保存 uncommitted 更改 temporarily 使用 git stash — 切换上下文不使用 losing 工作.
-
15 git diff
Inspecting 更改使用 git diff — comparing 工作树, staged, and committed 状态.
-
16 git revert
Undoing 提交 safely 使用 git revert — 创建 inverse 提交不使用 rewriting history.
-
17 git reset
Rewriting 局部 history 使用 git reset — soft, mixed, and 困难模式 and 当到 use 每个.
-
18 .gitignore
排除 files 从 Git 使用 .gitignore — 模式, 全局 ignores, and unignoring files.
-
19 合并 Conflicts
Resolving 合并 conflicts 步骤通过步骤 — 理解 conflict markers and resolution 策略.
-
20 Git Flow Workflow
Git Flow branching model — feature, 发布, and hotfix 分支 for structured 发布.
-
21 拉取请求
打开 and reviewing 拉取请求 on GitHub — collaboration workflow 那个 powers 打开源.
-
22 Code Review 基础
Reviewing 拉取请求 effectively — giving constructive feedback and using review checklists.
-
23 git remote
Managing remote 仓库使用 git remote — 添加, renaming, and 移除 upstream 连接.
-
24 git 获取
Downloading remote 更改使用 git 获取 — safe alternative 到 git 拉取那个做 不合并.
-
25 git rebase
Replaying 提交使用 git rebase — keeping history linear and resolving rebase conflicts.
-
26 git cherry-选取
Applying 特定提交使用 git cherry-选取 — moving individual 提交之间分支.
-
27 git 标签
Marking 发布使用 git 标签 — lightweight and annotated 标签 for version management.
-
28 Git Hook
Automating workflows 使用 Git Hook — pre-提交, pre-推送, and 提交-msg scripts.
-
29 GitHub 操作 Intro
Automating workflows 使用 GitHub 操作 — CI/CD 流水线 triggered 通过 Git 事件.
-
30 Git 最佳实践
Professional Git habits — 提交 hygiene, 分支策略, and workflows for clean history.
-
31 交互式 Rebase
全面讲解 Git 中的交互式 Rebase,涵盖核心概念、实现细节和实际示例。
-
32 Cherry-Pick 提交
全面讲解 Git 中的 Cherry-Pick 提交,涵盖核心概念、实现细节和实际示例。
-
33 Git Bisect 调试
全面讲解 Git 中的 Git Bisect 调试,涵盖核心概念、实现细节和实际示例。
-
34 Reflog 与恢复
全面讲解 Git 中的 Reflog 与恢复,涵盖核心概念、实现细节和实际示例。
-
35 Git Stash 管理
全面讲解 Git 中的 Git Stash 管理,涵盖核心概念、实现细节和实际示例。
-
36 Submodule 与 Subtree
全面讲解 Git 中的 Submodule 与 Subtree,涵盖核心概念、实现细节和实际示例。
-
37 Git Hooks 自动化
全面讲解 Git 中的 Git Hooks 自动化,涵盖核心概念、实现细节和实际示例。
-
38 自定义 Git 别名
全面讲解 Git 中的自定义 Git 别名,涵盖核心概念、实现细节和实际示例。
-
39 Sparse Checkout 稀疏检出
全面讲解 Git 中的 Sparse Checkout 稀疏检出,涵盖核心概念、实现细节和实际示例。
-
40 Git Worktree 工作树
全面讲解 Git 中的 Git Worktree 工作树,涵盖核心概念、实现细节和实际示例。
-
41 Refspec 与推送规则
全面讲解 Git 中的 Refspec 与推送规则,涵盖核心概念、实现细节和实际示例。
-
42 filter-branch 与 filter-repo
全面讲解 Git 中的 filter-branch 与 filter-repo,涵盖核心概念、实现细节和实际示例。
-
43 Git LFS 大文件管理
全面讲解 Git 中的 Git LFS 大文件管理,涵盖核心概念、实现细节和实际示例。
-
44 合并策略详解
全面讲解 Git 中的合并策略详解,涵盖核心概念、实现细节和实际示例。
-
45 Rebase 与 Merge 决策
全面讲解 Git 中的 Rebase 与 Merge 决策,涵盖核心概念、实现细节和实际示例。
-
46 Git Attributes 属性配置
全面讲解 Git 中的 Git Attributes 属性配置,涵盖核心概念、实现细节和实际示例。
-
47 GPG 签名提交
全面讲解 Git 中的 GPG 签名提交,涵盖核心概念、实现细节和实际示例。
-
48 Git Notes 备注
全面讲解 Git 中的 Git Notes 备注,涵盖核心概念、实现细节和实际示例。
-
49 Bundle 与 Archive
全面讲解 Git 中的 Bundle 与 Archive,涵盖核心概念、实现细节和实际示例。
-
50 Git 内部对象模型
全面讲解 Git 中的 Git 内部对象模型,涵盖核心概念、实现细节和实际示例。
学习阶段
预计总时长: 14h 25m- 1
基础
13 课 · 2h 10m掌握基本概念与语法,建立扎实基础。
0/13 核心
13 课 · 3h 15m深入理解核心模式与常见用例。
0/13进阶
12 课 · 4h攻克进阶主题,开始流畅组合所学概念。
0/12高级
12 课 · 5h掌握高级技巧并应用于真实问题。
0/12
完成标准
完成 80% 课程、60% 练习和 50% 项目即可掌握 该主题。
- 课程0 / 200%
- 练习0 / 1000%
- 项目0 / 100%
技能评估
0 / 20 已掌握- 0Git 基础基础0 / 7 课 · 0%
- 分支与合并核心0 / 4 课 · 0%
- 远程仓库核心0 / 5 课 · 0%
- 高级 Git 命令进阶0 / 7 课 · 0%
- Git 工作流进阶0 / 3 课 · 0%
- 协作核心0 / 2 课 · 0%
- Git 故障排除高级0 / 3 课 · 0%
- Git 自动化高级0 / 3 课 · 0%
+12 更多技能
动手做项目
通过引导式项目应用所学,含起始代码与解决方案。
解读错误信息
用大白话解释常见错误——什么意思、为什么发生、如何修复。