Git 免密登录
This commit is contained in:
parent
587ab3ca8a
commit
1cb6aa46b0
@ -21,8 +21,8 @@ ssh-keygen -t rsa -C "your_email@example.com"
|
||||
```sh
|
||||
git config --global core.sshCommand "openssh-client -o StrictHostKeyChecking=no -i /path/to/your/key.pem"
|
||||
```
|
||||
|
||||
1. `--global` 参数代表全局使用,不全局使用则需要进入对应本地仓库目录进行设置
|
||||
|
||||
2. `/path/to/your/key.pem` 是你的私钥
|
||||
|
||||
### 远程仓库设置公钥
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: C 语言实现类似php的array数据类型
|
||||
date: 2023-03-30
|
||||
tags: Git
|
||||
tags: C
|
||||
---
|
||||
|
||||
```c
|
||||
|
Loading…
x
Reference in New Issue
Block a user