What command shows the detailed information about a specific commit, including parents and author details?
Posted by MaryJns
Last Updated: July 15, 2024
To show detailed information about a specific commit in Git, including parent commits and author details, you can use the following command:
git show <commit-hash>
Replace <commit-hash> with the actual hash of the commit you are interested in. This command will display the commit message, the author, the date, the changes made in that commit, and information about any parent commits. If you only want to see the commit details without the diff of changes, you can use:
git log -1 <commit-hash>
This will give you a concise output that includes the commit message, author, date, and parents, but excludes the details of the changes.