Interview Prep/Git & GitHub/Commits, branches and tags

What does `git show` display?

BeginnerConceptCommits, branches and tags
Answer

For a commit it prints metadata and the patch; for a tag the tag object then the target; for a tree or blob the listing or content. git show REV:path prints a file as it existed at that revision, without checking it out.

git show HEAD~3:config/app.yaml
git show --stat v1.4.0
All Git & GitHub questions Roadmap: Git & GitHub

More on Commits, branches and tags