1.初始化本地仓库
git init
2.添加所有文件( . 表示所有) (注意add后有空格)
git add .
3.提交所有文件到本地仓库(备注信息不能为空)
git commit -m "备注信息"
4.连接到远程仓库
git remote add origin 远程仓库地址
5.将项目推送到远程仓库
git push -u origin master
可能报错: Authentication failed
解决方案: 重新设置下用户名 邮箱
git config --global user.name [username]
git config --global user.email [email]