add git-merge.md

This commit is contained in:
shzhxh 2019-07-15 20:59:25 +08:00
parent 1d7a6eb9f3
commit 375bd2977f
5 changed files with 38 additions and 1 deletions

View File

@ -9,7 +9,7 @@
| 2 | txctrl | 传递控制。[0]tx使能[1]0一个停止位,1二个停止位[2:15]保留,[16:18]中断触发器的分频值,[19:31]保留 |
| 3 | rxctrl | 接收控制。[0]tx使能[1:15]保留,[16:18]中断触发器的分频值,[19:31]保留 |
| 4 | ie | 中断使能。[0]0禁止发送,1使能发送[1]0禁止接收,1使能接收[2:31]为0 |
| 5 | ip | 中断pending。[0]小于txcnt[1]大于rxcnt[2:31]为0 |
| 5 | ip | 中断pending。[0]控制发送,[1]控制接收,[2:31]为0 |
| 6 | div | 波特率divisor。[0:15]波特率divisor[16:31]为0 |
#### 功能

View File

@ -0,0 +1,6 @@
```
git merge [options] [-m msg] [commit...] # 将comits的改变合并到当前分支
git merge --abort # 当合并出现冲突后,终止合并的进程并尝试回到合并前的状态
git merge --continue # 当合并出现冲突并解决完冲突后,可以用此命令继续完成合并
```

View File

@ -2,6 +2,14 @@
将远程仓库的更改合并到当前分支中
#### 语法
```
git pull [options] [repository [refsepc...]]
```
#### 用法
```

View File

@ -2,6 +2,19 @@
使用本地refs来更新远程refs
#### 语法
```
git push [选项] [<repository> [<refspec>...]]
# <repository>是远程仓库。它可以是远程仓库的URL也可以是远程仓库的名称。
# <refspec>...则指定本地对象更新哪个远程引用,其格式为[+]<src>:<dst>
# <src>通过是本地分支名称但也可以是一个SHA-1表达式。
# <dst>则描述要更新哪个远程引用。它必须是一个实际的引用名称。
# <tag> 对于tag来说这相当于 refs/tags/<tag>:ref/tags/<tags>
```
#### 例子
```

View File

@ -167,6 +167,16 @@ V # 选择,以行为单位
| softtabstop | sts | 按下退格键将删除指定数量的空格 |
| (no)smarttab | (no)sta | 首行按tab键的时侯空格数是来自于ts还是sw |
配置示例
```
# 1个tab键变成4个空格
vim ~/.vimrc
set ts=4
set et
set ai
```
#### 常见错误