update git clone command
This commit is contained in:
@@ -257,7 +257,7 @@ Host macmini
|
|||||||
## 2. 使用简化地址
|
## 2. 使用简化地址
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone git@macmini:admin/nexus.git
|
git clone ssh://git@192.168.3.45:2222/admin/nexus.git
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -404,7 +404,7 @@ Host 192.168.3.189
|
|||||||
|
|
||||||
以后只需执行简单的命令,Git 会自动映射 `git` 用户和 `2222` 端口:
|
以后只需执行简单的命令,Git 会自动映射 `git` 用户和 `2222` 端口:
|
||||||
|
|
||||||
- `git clone 192.168.3.189:admin/nexus.git`
|
- `git clone ssh://git@192.168.3.45:2222/admin/nexus.git`
|
||||||
|
|
||||||
- `git pull`
|
- `git pull`
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user