add git magic
and sequence diagrams to explain why and how git is used
This commit is contained in:
parent
0823ed35d1
commit
db280fe1fe
20
git/start.md
20
git/start.md
@ -1,6 +1,6 @@
|
|||||||
开始使用 git
|
开始使用 git
|
||||||
---
|
===
|
||||||
|
## 1. 安装
|
||||||
* 安装 `git` 客户端和图形界面(例如 `TortoiseGit`,`SmartGit`),连接方式注意选择 `openssh`。
|
* 安装 `git` 客户端和图形界面(例如 `TortoiseGit`,`SmartGit`),连接方式注意选择 `openssh`。
|
||||||
* 生成 `ssh 密钥`(Windows 用户请先打开 `git bash`),输入命令:
|
* 生成 `ssh 密钥`(Windows 用户请先打开 `git bash`),输入命令:
|
||||||
```bash
|
```bash
|
||||||
@ -11,3 +11,19 @@
|
|||||||
延伸阅读:[非对称加密](https://zhuanlan.zhihu.com/p/49494990)
|
延伸阅读:[非对称加密](https://zhuanlan.zhihu.com/p/49494990)
|
||||||
|
|
||||||
* 打开 [设置](https://git.yztiot.com/user/settings/keys),上传公钥,才能连接远众 git 仓库。
|
* 打开 [设置](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 基本操作
|
||||||
|
* 基本时序
|
||||||
|

|
||||||
|
* 常用命令
|
||||||
|

|
||||||
|
|
||||||
|
[Git和SVN(Subversion)的命令的对比](https://www.jianshu.com/p/9c5d2a0589fc)
|
||||||
|
|
||||||
|
[Git 小游戏](https://learngitbranching.js.org/?locale=zh_CN)
|
||||||
|
BIN
git/start/daily-commands.jpg
Normal file
BIN
git/start/daily-commands.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 260 KiB |
BIN
git/start/sequence.webp
Normal file
BIN
git/start/sequence.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
Loading…
Reference in New Issue
Block a user