Skip to content

Instantly share code, notes, and snippets.

@learnit-codeit
Created April 26, 2021 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save learnit-codeit/5e1d9daaa39aa0dd261b17f91dc9ca39 to your computer and use it in GitHub Desktop.
Save learnit-codeit/5e1d9daaa39aa0dd261b17f91dc9ca39 to your computer and use it in GitHub Desktop.
#This is the default log command
#The command listing out all the commit log.
#The log information contains commit ID, Author and date.
git log
#The below command will print each logs in a single line
git log --oneline
#The below command will prints files which modified on each commit
git log --stat
#The below command prints logs including each changes in the file
git log --patch
or
git log -p
#The below command enable to print the git log as a graph
git log --graph --oneline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment