mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-16 20:49:15 +00:00
Update cheatsheets
This commit is contained in:
34
git-status
Normal file
34
git-status
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# git status
|
||||
|
||||
> 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>.
|
||||
|
||||
- Show changed files which are not yet added for commit:
|
||||
|
||||
`git status`
|
||||
|
||||
- Give output in [s]hort format:
|
||||
|
||||
`git status --short`
|
||||
|
||||
- Show the [b]ranch and tracking info:
|
||||
|
||||
`git status --branch`
|
||||
|
||||
- Show output in [s]hort format along with [b]ranch info:
|
||||
|
||||
`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`
|
||||
Reference in New Issue
Block a user