非常教程

Git参考手册

git status 命令

git status 命令

git status 命令

git status 命令

Git 基本操作


git status 命令用于查看在你上次提交之后是否有对文件进行再次修改。

$ git status
On branch master

Initial commit

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)

    new file:   README
    new file:   hello.php

通常我们使用 -s 参数来获得简短的输出结果:

$ git status -s
AM README
A  hello.php

git status 命令

AM 状态的意思是这个文件在我们将它添加到缓存之后又有改动。



git status 命令

Git 基本操作

git status 命令