1、 git init ----初始化git仓库
2、git add . ----把代码添加到仓库
3、git commit -m '注释' ---commit:提交 -m:全部提交 ‘注释’:本次提交代码的注释