I got a changeset after digging around with git blame. Now I want to know more about the changeset. The changes made and comments,etc etc.
What is the git command to get that information?
Looked around, but could not find the answer that I was looking for.
`git log` command is used to view the commit history and display the necessary information of the git repository. This command displays the latest git commits information in chronological order, and the last commit will be displayed first.
All that you have to do is go on to the file that you committed on and go to the history for it, then select the earliest commit with the <> icon to view the code at that time.
git log -1 will display the latest commit message or git log -1 --oneline if you only want the sha1 and associated commit message to be displayed. Show activity on this post. Show activity on this post. Show activity on this post.
Maybe git show?
It gives you the commit sha, the author, the comment and a complete diff of that commit. If you need you can also specify multiple changeset using this syntax.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With