Overview
suggest changegit show shows various Git objects.
For commits
Shows the commit message and a diff of the changes introduced.
| Command | Description |
|---|---|
git show |
shows the current commit (HEAD) |
git show @~3 |
shows the third ancestor of HEAD |
For trees and blobs
Shows the tree or blob.
| Command | Description |
|---|---|
git show @~3: |
shows the project root tree from three commits before HEAD |
git show @~3:src/program.js |
shows src/program.js as it was three commits before HEAD |
git show @:a.txt @:b.txt |
shows a.txt and then b.txt from the current commit |
For tags:
Shows the tag message and the referenced object.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents