From b4be25f0216e44a01d75e04dd5fe19651b3aef83 Mon Sep 17 00:00:00 2001 From: Itamar Shalev <31468201+ItamarShalev@users.noreply.github.com> Date: Mon, 30 Jun 2025 21:56:28 +0300 Subject: [PATCH] git-show: add --name-only example (#17037) --- pages/common/git-show.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/common/git-show.md b/pages/common/git-show.md index 43a2ab3d6b..05d77d64ea 100644 --- a/pages/common/git-show.md +++ b/pages/common/git-show.md @@ -7,13 +7,9 @@ `git show` -- Show information about a given commit: +- Show information about a specific commit, tag, or branch (such as `HEAD` for the latest commit): -`git show {{commit}}` - -- Show information about the commit associated with a given tag: - -`git show {{tag}}` +`git show {{commit|tag|branch}}` - Show information about the 3rd commit from the HEAD of a branch: @@ -27,6 +23,10 @@ `git show --stat {{commit}}` +- Show a simplified list of all files changed in a commit (modified, added, and deleted): + +`git show --name-only {{commit}}` + - Show only the list of added, renamed or deleted files: `git show --summary {{commit}}`