1、在本地项目处打开GitBash
2、输入git init 初始化本地文件夹
3、在git上新建一个项目,获取到git地址:https://github.com/LMlegend/Vue-TodoList.git
4、再回到Git Bash中,使用如下命令连接到远程仓库
git remote add origin https://github.com/LMlegend/Vue-TodoList.git
5、git add . 将本地文件添加到仓库
6、git commit -m "First commit"
7、git push -u origin master 提交到仓库