Git 免密登录

This commit is contained in:
zyimm 2023-04-04 10:30:31 +08:00
parent 587ab3ca8a
commit 1cb6aa46b0
2 changed files with 2 additions and 2 deletions

View File

@ -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` 是你的私钥
### 远程仓库设置公钥

View File

@ -1,7 +1,7 @@
---
title: C 语言实现类似php的array数据类型
date: 2023-03-30
tags: Git
tags: C
---
```c