You can check the commit history in Git by using the git log command. Here’s how to do it:
-
Open your terminal.
-
Navigate to your Git repository directory.
-
Run the following command:
git log
This will display a list of commits in reverse chronological order, showing the commit hash, author, date, and commit message.
For a more concise view, you can use:
git log --oneline
This will show each commit on a single line, displaying the commit hash and the commit message.
