社区微信群开通啦,扫一扫抢先加入社区官方微信群
社区微信群
鼠标右键打开GitBash
git config --global user.name "你的name"
git config --global user.email "你的邮箱"
git config --global push.default matching
git config --global core.quotepath false
git config --global core.editor "vim"
打开GitHub -> 右上角 -> Settings
左侧SSH and GPG keys
点击generating SSH keys
点击 Generating a new SSH key and adding it to the ssh-agent
将此条命令替换上自己的邮箱键入GitBash,连续三个回车
$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
出现如下字样
再在GitBash里敲入
cat ~/.ssh/id_rsa.pub
出现一大段英文字符 将字符复制下来
打开GitHub -> settings -> SSH and GPG keys
点击 new SSH key
title随便起,将刚才复制的英文串复制到key里
然后就完成啦~
VSCode上就可以实现拉取推送操作了
如果有疑问欢迎下方评论留言哦~
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!