一、如果没有账号要先创建账号
GitHub的官方网址
GitHub: Let's build from here · GitHub
1.注册,点击sign up

二、建立一个仓库
新建仓库搭建步骤
1.创建个人站点,打开GitHub主页,点击新建站点

2.新建仓库

3.填写站点名称,站点描述等信息

三、复制仓库地址

四、以下为本地操作
1.在本地新建一个空文件夹

2.添加文件到暂存区
git add fileName
3.提交文件到本地仓库
git commit -m "注释"
4.与GitHub关联
git remote add origin url
5.提交文件夹到GitHub
git push origin 分支