From aa10402b9e8cf21f25fb0ad3b8d8f67061902c85 Mon Sep 17 00:00:00 2001 From: Raynaldo Sutisna Date: Sat, 21 Oct 2023 15:45:38 -0400 Subject: [PATCH] git-status: add some examples (#11119) Co-authored-by: Juri Dispan Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --- pages/common/git-status.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/pages/common/git-status.md b/pages/common/git-status.md index d243b6645..50a0d4d03 100644 --- a/pages/common/git-status.md +++ b/pages/common/git-status.md @@ -10,12 +10,20 @@ - Give output in [s]hort format: -`git status -s` +`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` - -- Show output in [s]hort format along with [b]ranch info: - -`git status -sb`