You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
安装git 和 git-bash,并把git-bash配成vscode默认的命令行
测试网络状况,避免因为地区github被屏蔽导致验证不过
如果发现网络状况不好,需要配一下host
国内可以考虑在站长工具的list里挑一个情况相对较好的地址,配置好dns
host配完之后,裸连github测试一下网络状况
在git-bash里使用工具rsakey
ssh-keygen -t rsa -C "[email protected]"
三连回车,注意可能会覆盖以前的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