Github能够帮助我们更好的管理代码和文件,VSCode作为一个免费开源的软件,而且有强大的插件支持,绝对是一个编写代码的利器,那么如何在VSCode上进行Github的配置呢,废话不多说,小伙伴门一起来学习一下吧!
一、首先,没有Github的小伙伴可以先注册一下Github账号,注册地址:Github,注册其实也比较容易,Github有专门的指导手册,小伙伴们可以阅览一下,这里就不再赘述了。
二、如果没有本地没有VSCode,请在官网进行下载,下载链接:VSCode Download,下载对应平台的软件,下载完成后直接安装即可!

三、创建一个Repositories,然后Copy该链接地址,如下图所示:

四、打开本地VSCode,切到文件列表项:点击“克隆存储库(Clone Repositories)”:

五、点击之后,会弹出一个对话框,将之前Copy的链接地址粘贴到对话框内:

六、点击存储URL,然后选择存储的路径,此时可能会要求你输入用户名和密码,按照提示输入即可!克隆完成后,会提示你打开存储库:

七、打开存储库,会看到一个README.md文件,我们可以修改这个文件,作为一个标识,提交到Github上,测试远程分支的连接是否正常:

八、切换到Git列表项,可以看到改动后的文件,点击“+”,暂存文件:

九、点击“✅”提交文件到本地仓,并填写变更履历:

十、推送到远程存储仓(右键“...”,点击推送到):

十一、选择远程分支:

十二、根据提示输入用户名和密码即可。然后就会提交到Github上!

以上就是如何在Mac上的VSCode配置Github,有什么不懂的可以留言!
注意:
1.如果还是不能访问,则需要根据VSCode的提示取得Github的访问权限;


由于外网的访问速度慢,多试几次,获得token之后会在VSCode中自动登陆Github!
2.可以安装GitGraph插件,在里面进行用户账户和密码以及Remote链接的配置,后面更新就很方便了。
参考链接:
网友评论