2015-10-22 08:31:52 +01:00
|
|
|
# git status
|
2014-03-09 12:20:13 +00:00
|
|
|
|
2021-01-07 14:06:38 +00:00
|
|
|
> Show the changes to files in a Git repository.
|
2019-11-26 19:12:12 +00:00
|
|
|
> Lists changed, added and deleted files compared to the currently checked-out commit.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://git-scm.com/docs/git-status>.
|
2014-03-09 12:20:13 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Show changed files which are not yet added for commit:
|
2014-03-09 12:20:13 +00:00
|
|
|
|
|
|
|
`git status`
|
|
|
|
|
2020-01-23 13:58:27 +00:00
|
|
|
- Give output in [s]hort format:
|
2014-03-09 12:20:13 +00:00
|
|
|
|
2023-10-21 20:45:38 +01:00
|
|
|
`git status --short`
|
2019-11-26 19:12:12 +00:00
|
|
|
|
2024-08-15 13:10:58 +01:00
|
|
|
- Show [v]erbose information on changes in both the staging area and working directory:
|
|
|
|
|
|
|
|
`git status --verbose --verbose`
|
|
|
|
|
2023-10-21 20:45:38 +01:00
|
|
|
- Show the [b]ranch and tracking info:
|
2019-11-26 19:12:12 +00:00
|
|
|
|
2023-10-21 20:45:38 +01:00
|
|
|
`git status --branch`
|
2020-01-23 13:58:27 +00:00
|
|
|
|
|
|
|
- Show output in [s]hort format along with [b]ranch info:
|
|
|
|
|
2023-10-21 20:45:38 +01:00
|
|
|
`git status --short --branch`
|
|
|
|
|
|
|
|
- Show the number of entries currently stashed away:
|
|
|
|
|
|
|
|
`git status --show-stash`
|
|
|
|
|
|
|
|
- Don't show untracked files in the output:
|
|
|
|
|
|
|
|
`git status --untracked-files=no`
|