add keytool.md; update git-pull.md: add description of option --rebase

This commit is contained in:
shzhxh 2019-09-20 16:17:40 +08:00
parent bb8fab29da
commit 69d288141b
2 changed files with 72 additions and 0 deletions

View File

@ -8,6 +8,22 @@
git pull [options] [repository [refsepc...]]
```
#### 选项
##### 与合并相关
```
-r, --rebase[=false|true|preserve|interactive] # 如为true则在抓取之后将当前分支重置到上游分支之上。如为false则将当前分支合并到上游分支。如为preserve则会向git rebase传递--preserve-merges选项这样本地提交就不会被破坏掉。如为interactive则开启交互模式。
```
##### 与抓取相关
```
```
#### 用法

56
Software/keytool.md Normal file
View File

@ -0,0 +1,56 @@
```
keytool [commands] # 管理keystore
# keystore是一个数据库它包含了密钥X.509证书链,可信证书。
```
#### 命令
```
# 一、创建keystore或向keystore中添加数据
-gencert
-genkeypair # 生成密钥对(公钥和私钥)。
-alias <alias>
-keyalg <keyalg> # 指定要生成的密钥对的算法
-keysize <keysize> # 指定要生成的密钥的大小
-validity <valDays> # 指定证书的有效期(如使用了-startdate选项则从它指定的日期开始如没使用-startdate选项则从当前日期开始)
-genseckey
-importcert
-importpassword
# 二、展示数据
-list
-printcert
-printcertreq
-printcrl
# 三、管理keystore
-storepasswd
-keypasswd
-delete
-changealias
# 四、其它未分类
-importkeystore # 从其它的keystore注入内容
-certreq # 生成证书请求
-exportcert # 输出数据
-help # 获取帮助
```
#### 通用选项
```
-v # 展示详细信息
-storetype <storetype>
-keystore <keystore> # 给定keystore的位置
```
#### 示例
```
# 生成keystore
keytool -genkeypair -keystore key.store -alias my_alias -keyalg RSA -keysize 4096 -validity 10000
```