add git magic and sequence diagrams to explain why and how git is used

This commit is contained in:
Christopher 2021-11-23 18:23:38 +08:00
parent 0823ed35d1
commit db280fe1fe
3 changed files with 18 additions and 2 deletions

View File

@ -1,6 +1,6 @@
开始使用 git
---
===
## 1. 安装
* 安装 `git` 客户端和图形界面(例如 `TortoiseGit``SmartGit`),连接方式注意选择 `openssh`
* 生成 `ssh 密钥`Windows 用户请先打开 `git bash`),输入命令:
```bash
@ -11,3 +11,19 @@
延伸阅读:[非对称加密](https://zhuanlan.zhihu.com/p/49494990)
* 打开 [设置](https://git.yztiot.com/user/settings/keys),上传公钥,才能连接远众 git 仓库。
## 2. Git 使用
### 2.1. 版本控制
[入门 - 工作就像玩游戏](http://www-cs-students.stanford.edu/~blynn/gitmagic/intl/zh_cn/ch01.html)
[Git Magic](https://github.com/blynn/gitmagic)
### 2.2. Git 基本操作
* 基本时序
![](start/sequence.webp)
* 常用命令
![](start/daily-commands.jpg)
[Git和SVN(Subversion)的命令的对比](https://www.jianshu.com/p/9c5d2a0589fc)
[Git 小游戏](https://learngitbranching.js.org/?locale=zh_CN)

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 KiB

BIN
git/start/sequence.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB