E-mail : support@tech2now.in

git log with various example

Git Git Hub git commit gir rebase git status git init

The git log command is used to view the commit history of a Git repository. It displays a list of commits, showing information such as the commit hash, author, date, and commit message.

C:jpetstore-6-master>git log
commit f8b854c4549dad50dbf892dasda7b4242d4cd480f36a6c70 (HEAD -> master)
Author: XYZ
Date: Tue Oct 22 18:26:28 2019 +0530

New file added

This command displays a concise list of commits in a Git repository, showing each commit on a single line.

$git log –oneline
C:jpetstore-6-master>git log –oneline
f8b854c (HEAD -> master) New file added

C:jpetstore-6-master>git log –stat
commit f8b854c454950dsaddbf8927dasdadb4242d4cd480f36a6c70 (HEAD -> master)
Author: XYZ
Date: Tue Oct 22 18:26:28 2019 +0530

New file added

This Command provides a summary of the changes made in each commit, including the files that were modified and the number of lines added or deleted

C:jpetstore-6-master>git log –stat

Test_Git/jpetstore-6-master/.gitattributes | 1 +
Test_Git/jpetstore-6-master/.gitignore | 8 +
…/.mvn/wrapper/MavenWrapperDownloader.java | 117 ++++++
…/.mvn/wrapper/maven-wrapper.properties | 2 +
Test_Git/jpetstore-6-master/.travis.yml | 66 +++
Test_Git/jpetstore-6-master/LICENSE | 202 ++++++++++
Test_Git/jpetstore-6-master/NOTICE | 55 +++
Test_Git/jpetstore-6-master/README.md | 75 ++++
Test_Git/jpetstore-6-master/format.xml | 22 +
Test_Git/jpetstore-6-master/license.txt | 13 +
Test_Git/jpetstore-6-master/mvnw | 310 ++++++++++++++
Test_Git/jpetstore-6-master/mvnw.cmd | 182 +++++++++
Test_Git/jpetstore-6-master/pom.xml | 387 ++++++++++++++++++
…/java/org/mybatis/jpetstore/domain/Account.java | 196 +++++++++
…/java/org/mybatis/jpetstore/domain/Cart.java | 124 ++++++
…/org/mybatis/jpetstore/domain/CartItem.java | 76 ++++
…/org/mybatis/jpetstore/domain/Category.java | 62 +++
…/java/org/mybatis/jpetstore/domain/Item.java | 145 +++++++
…/org/mybatis/jpetstore/domain/LineItem.java | 118 ++++++
…/java/org/mybatis/jpetstore/domain/Order.java | 335 +++++++++++++++
…/java/org/mybatis/jpetstore/domain/Product.java | 71 ++++
…/org/mybatis/jpetstore/domain/Sequence.java | 56 +++
…/mybatis/jpetstore/mapper/AccountMapper.java | 43 ++
: