3 examples for git log

{{ score }}
  # The ultimate graph display for your git log
git log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
        
{{ score }}
  # Search the commit history for changes including the string 'something', showing the diff of each commit. Useful for
# finding when the a particular string was added or used in your commit history.
git log -p -Ssomething

# Same as above, but only search for the string 'something' being used in the commit history of the file foo.py.
git log -p -Ssomething -- foo.py
        
{{ score }}
  # Show the history of changes for the specified file
git log -p -- path/to/some_file.txt