Skip to content

Commit 39a8e42

Browse files
author
Administrator
committed
修改仓库地址
1 parent 4499a32 commit 39a8e42

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

gen_ssh-key.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,10 @@ ssh-keygen -t ed25519 -C "$email" -N ""
44
eval "$(ssh-agent -s)"
55
ssh-add ~/.ssh/id_ed25519
66
cat ~/.ssh/id_ed25519.pub
7+
8+
echo "✅ SSH 公钥已生成并添加到 ssh-agent 中。"
9+
echo "✅ 请将上面的公钥添加到 GitHub/GitLab/Bitbucket 等代码托管平台的 SSH 密钥中。"
10+
echo https://github.com/settings/keys
11+
12+
echo "✅ 修改远程仓库地址为 SSH 地址 git@github.com:linjonh/shellscript-install.git"
13+
git remote set-url origin git@github.com:linjonh/shellscript-install.git

0 commit comments

Comments
 (0)