配置用户名和邮箱
git config --global user.name ‘andyzhang0511‘
git config --global user.email ‘476472974@qq.com‘
初始化→添加→提交
git init
git add .
git commit -m "提交文件"
关联→推送
git remote add origin https://github.com/hanyuntao/text.git
git push -u origin master
原文:https://www.cnblogs.com/andyZhang0511/p/11285718.html