tldr/pages/common/git-status.md

22 lines
489 B
Markdown
Raw Normal View History

2015-10-22 08:31:52 +01:00
# git status
2014-03-09 12:20:13 +00:00
> Show the changes to files in a git repository.
> Lists changed, added and deleted files compared to the currently checked-out commit.
> More information: <https://git-scm.com/docs/git-status>.
2014-03-09 12:20:13 +00:00
- Show changed files which are not yet added for commit:
2014-03-09 12:20:13 +00:00
`git status`
- Give output in [s]hort format:
2014-03-09 12:20:13 +00:00
2015-10-22 08:31:52 +01:00
`git status -s`
- Don't show untracked files in the output:
`git status --untracked-files=no`
- Show output in [s]hort format along with [b]ranch info:
`git status -sb`