1.git init 初始化本地仓库 2.git add * 或文件名 暂存 3.git commit -m ’ 自己定名字’ 4.git status 查看 5.git remote add origin https://github.com/xxx 6.git push -u origin master
参考:https://www.cnblogs.com/imyalost/p/8762522.html