LOG View whole commits history git log View last n commits with its message only git log –oneline -n E.g. git log –oneline -n 2 View commits history…