Last active
January 26, 2020 09:17
-
-
Save mikybars/03c22810e2a5e3c6f6a7b3920f69c7c3 to your computer and use it in GitHub Desktop.
Use cases for git show
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # View a commit by id (without an id it defaults to HEAD i.e. the last commit) | |
| $ git show 512b26a | |
| # View only the list of modified files in the commit | |
| $ git show 512b26a --name-only | |
| # View the DIFF of the file(s) inside the commit | |
| $ git show 512b26a pom.xml | |
| # View the CONTENTS of the file at a certain revision | |
| $ git show 512b26a:pom.xml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment