一、GitHub or GitLab or Gitee创建一个新的仓库

二、仓库路径创建成功后,将本地项目上传到git
- 进入本地项目所在文件夹位置,右击

2.出现git命令框 输入git init 在当前项目的目录中生成本地的git管理(会发现在当前目录下多了一个.git文件夹)

3.输入git add . 将项目上所有的文件添加到仓库中的意思,如果想添加某个特定的文件,只需把.换成这个特定的文件名即可

4.输入git commit -m "提交说明",表示你对这次提交的注释,双引号里面的内容可以根据个人的需要改。

5.输入git remote add origin https://自己的仓库url地址 将本地的仓库关联到github上

6.输入git push -u origin master,这是把代码上传到github仓库的意思

三、完成上传啦