Git commit

git提交一般流程:

git add 修改文件 //将代码从工作区放入暂存区
git commit -m '修改信息' //将暂存区的信息写入版本库

git commit -a -m 实现了上述两条命令合并一起的操作,相当于

git add *
git commit -m 'message'
原文地址:https://www.cnblogs.com/amyzhu/p/10348951.html