Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
安装git 和 git-bash,并把git-bash配成vscode默认的命令行
测试网络状况,避免因为地区github被屏蔽导致验证不过
如果发现网络状况不好,需要配一下host
国内可以考虑在站长工具的list里挑一个情况相对较好的地址,配置好dns
host配完之后,裸连github测试一下网络状况
在git-bash里使用工具rsakey
ssh-keygen -t rsa -C "your@email.com"三连回车,注意可能会覆盖以前的rsa,如果不想覆盖请另外指定相关信息.
成功了会打印一个sha256的图形image
通常都放在User文件夹里
cd C:/Users/.ssh ls // 一般有 id_rsa 和 id_rsa.pub konwn_hosts 三个文件 cat id_rsa.pub // 复制公钥将公钥添加到 github个人账户 setting中ssh相关选项里保存
成功会提示
You've successfully authenticated正常push code
gitbash里可以直接使用code命令启动
Beta Was this translation helpful? Give feedback.
All reactions