1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-08 22:05:23 +02:00
tldr/pages/common/hg-status.md

37 lines
788 B
Markdown
Raw Normal View History

2019-03-26 10:20:30 +00:00
# hg status
> Show files that have changed in the working directory.
> More information: <https://www.mercurial-scm.org/doc/hg.1.html#status>.
2019-03-26 10:20:30 +00:00
- Display the status of changed files:
`hg status`
- Display only modified files:
`hg status {{[-m|--modified]}}`
2019-03-26 10:20:30 +00:00
- Display only added files:
`hg status {{[-a|--added]}}`
2019-03-26 10:20:30 +00:00
- Display only removed files:
`hg status {{[-r|--removed]}}`
2019-03-26 10:20:30 +00:00
- Display only deleted (but tracked) files:
`hg status {{[-d|--deleted]}}`
2019-03-26 10:20:30 +00:00
- Display changes in the working directory compared to a specified changeset:
`hg status --rev {{revision}}`
- Display only files matching a specified glob pattern:
`hg status {{[-I|--include]}} {{pattern}}`
2019-03-26 10:20:30 +00:00
- Display files, excluding those that match a specified glob pattern:
`hg status {{[-X|--exclude]}} {{pattern}}`