> For the complete documentation index, see [llms.txt](https://wikinote.gitbook.io/git-learning/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wikinote.gitbook.io/git-learning/git-ji-ben-ming-ling/cha-xun/git-status.md).

# git status

> 查看git工作区文件状态报告

## 状态输出

```
git status
```

* **无参数**

详细的状态输出

```bash
$ git status
On branch master
Untracked files:
  (use "git add <file>..." to include in what will be committed)

        README

nothing added to commit but untracked files present (use "git add" to track)
```

## 紧凑的格式输出

```
git status --short|-s
```

* **参数**
  * file\_path (文件路径）

紧凑的格式输出

```bash
$ git status
M new.js
D edit.js
```
