主题二:使用 Git 进行版本控制

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Git 版本控制入门指南

## 引言

简述版本控制的重要性及 Git 的地位。

## 安装 Git

- [x] 在 Windows/Mac/Linux 上安装 Git

## 基本命令

- [x] `git init`
- [x] `git add`
- [x] `git commit`
- [x] `git push``git pull`

```bash
git init
git add README.md
git commit -m "first commit"
git branch -M main
git push -u origin main
```