1、初始化
git init
2、查看可提交内容
git status
3、把所有文件放入缓存
git add *
4、提交到本地仓库
git commit -m "提交信息"
根据提示设置邮箱和名字
Please tell me who you are.
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
5、链接远程仓库
git remote add origin 远程仓库地址
6、推送至远程仓库
git push -u origin "master"