From f614df84fcfde0c82e1b2b9644305d4ad89bbc59 Mon Sep 17 00:00:00 2001 From: lmj01 Date: Thu, 9 May 2024 23:29:25 +0800 Subject: [PATCH] update --- dev-note/git.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dev-note/git.md b/dev-note/git.md index abdbbeb..2055a26 100644 --- a/dev-note/git.md +++ b/dev-note/git.md @@ -213,3 +213,13 @@ cherry-pick对子目录不太友好,会改变目录结构,迁移时更多选 ## 打包 - git archive --format zip --output path/zipfile.zip branch-name + +## ssh +```shell +sudo apt install ssh +ssh-kengen -t rsa -C "your@eamil.com" # 生成密码,需要两次输入密钥,及密码,把生产的公钥拷贝到github上 +ssh -T git@github.com # 测试生成的是否连同 +mkdir repo-foloder && cd repo-folder +git init +git remote add origin git@github.com:Username/Repositories_Name.git # 现在这样仓库就处理好了。 +``` \ No newline at end of file