SAGARFIVE

1. Introduction

2. Git Basics

3.  Git Terminology

4.  Git Branching

5.  Git - Github

6.  Git Add (Git staging)

7.  Git Commit

8.  Github Advanced

9.  Git Remote

7.2 Git Log (See Commit List/History)

  • To see the git commit history, we can use git log command
  • it will shows all the information related to git commits
  • Commit history always shows in time lienier manner with branch specific
  • HEAD is always points to latest commit in that branch

Commit history with informationgit log
Commit history with information in one linegit log –oneline
  • Git log shows us
  • Commit hash and shows head pointing which branch on latest commit
  • Author
  • Date
  • message
  • Here above six.txt is single line commit, Here line1 line2 is multiline/large information commit

Here some more commands for filtering the log responce:

To see last 5 commitsgit log -5
To see commits from the dategit log –since=2023-01-01
To see commits up to the dategit log –since=2023-04-01
To see commits specific usergit log –author=”user_name”
To see commits specific user in one linegit log –oneline –author=”user_name”