From bd91722e17e71396f9e18e7d74bb3c1d5cf9e5c5 Mon Sep 17 00:00:00 2001 From: dichgrem Date: Fri, 2 Jan 2026 14:47:22 +0800 Subject: [PATCH] update:git --- content/about-git.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/content/about-git.md b/content/about-git.md index cef5bc9..f72f82a 100644 --- a/content/about-git.md +++ b/content/about-git.md @@ -50,18 +50,16 @@ Enter file in which to save the key (/home/dich/.ssh/id_rsa): /home/dich/.ssh/Gi ```bash # GitHub - -Host github +Host github github.com HostName github.com User git - IdentityFile ~/.ssh/Github + IdentityFile ~/.ssh/github # Gitee - -Host gitee +Host gitee gitee.com HostName gitee.com User git - IdentityFile ~/.ssh/Gitee + IdentityFile ~/.ssh/gitee ``` > 这边的IdentityFile是你的私钥位置,即为不带pub后缀的文件。如果你不想将私钥放在~/.ssh/下,可以查看我的另一篇[博客](https://blog.dich.bid/network-ssh/)