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
More on Commits, branches and tags
How do you write a good commit message?BeginnerWhat is the difference between `git add .`, `git add -A` and `git add -u`?BeginnerHow do you commit only part of the changes in a file?BeginnerHow do you change the last commit message or add a forgotten file?BeginnerWhat is the difference between `git switch`, `git restore` and `git checkout`?BeginnerWhat is the difference between lightweight and annotated tags?Beginner