1.下载Git,进行安装 官方地址:官方链接
不翻墙的话下载不到,我是直接跟朋友拿的 ,所以为了方便,我上传到百度云了,下面是百度云的链接:百度云链接
2.设置Git

3.设置GitHub账号

4.创建仓库
创建本地仓库,git会先创建一个本地仓库,每次commit的时候会先提交到本地仓库,然后push的时候,才会提交到服务器


5.添加文件到git仓库
6.上传项目到github

因为已经上传了,所以提示已存在,刚刚的上传的时候提示了一个错误,被我点击忽略了,应该没什么影响,下次传新项目的时候,我再看看有没有。
网友评论