提交更新git commit

每次准备提交前,先用 git status 看下,是不是都已暂存起来了, 然后再运行提交命令 git commit

$ git commit

你也可以在 commit 命令后添加 -m 选项,将提交信息与命令放在同一行

git commit 加上 -a 选项,Git 就会自动把所有已经跟踪过的文件暂存起来一并提交,从而跳过 git add 步骤

results matching ""

    No results matching ""