记载一下我的从桌面连接github的基本步骤
github的连接
在使用云端IDE师默认自带Git,不用再安装
但是笔者在自己Win10的笔记本电脑配置环境
因此首先先装一个git for windows的
https://git-scm.com/download/win
第一步问题:下载完后为了更为方便的导入github上的项目因此我们需要将桌面的git与你的github账号用ssh联系起来。才能进入上github的服务器上clone 项目。
如果直接git clone 则会出现下列的状况。
详细情况也可参考官方的帮助文档
https://help.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh
首先设置全局的用户名和你的邮箱
$ git config --global user.name “ 你的用户名”
$ git config --global user.email “你的邮箱”
设置完成后输入下面command 可以看到你的设置内容
$ git config --global user.name
$ git config --global user.email
然后先检查是否根目录下已经存在了ssh文件