update
This commit is contained in:
parent
345f69c2f6
commit
946b690970
4
git.md
4
git.md
@ -57,7 +57,7 @@ git clone https://github.com/Nick233333/gitbook.git #克隆远程仓库
|
|||||||
git clone https://github.com/Nick233333/gitbook.git linux #克隆并指定目录名称
|
git clone https://github.com/Nick233333/gitbook.git linux #克隆并指定目录名称
|
||||||
```
|
```
|
||||||
|
|
||||||
日志
|
__日志__
|
||||||
|
|
||||||
```
|
```
|
||||||
git log #查看提交日志
|
git log #查看提交日志
|
||||||
@ -94,7 +94,7 @@ git push origin :branch #删除远程分支
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
标签
|
__标签__
|
||||||
|
|
||||||
```
|
```
|
||||||
git tag #列出现有标签
|
git tag #列出现有标签
|
||||||
|
@ -156,13 +156,17 @@ free -k #以 kb 统计系统内存
|
|||||||
#### ssh 命令
|
#### ssh 命令
|
||||||
|
|
||||||
```
|
```
|
||||||
|
ssh username@ip #远程登录服务器
|
||||||
|
|
||||||
|
ssh -p 2222 username@ip #指定端口登录远程服务器
|
||||||
```
|
```
|
||||||
|
|
||||||
#### ping 命令
|
#### ping 命令
|
||||||
|
|
||||||
```
|
```
|
||||||
|
ping ip or domain name #使用 ICMP 协议测试服务器是否正常运行
|
||||||
|
|
||||||
|
ping -c 2 ip #测试并设置返回的数据次数
|
||||||
```
|
```
|
||||||
|
|
||||||
#### dig 命令
|
#### dig 命令
|
||||||
|
Loading…
x
Reference in New Issue
Block a user