Menu
PHP BABA LOGO
  • Home
  • About
PHP BABA LOGO

Git Log Commands

Posted on January 22, 2021January 22, 2021

Show logs with file differences(we can add number of the commit which we want to see like -1,-2): git log -p

Show logs with addition and deletion in a particular commit: git log --stat

Show commits in one line: git log --pretty=oneline

Show commit in short form: git log --pretty=short

Show log from last two days: git log --since=2.days

Show logs in pattern(like hashCode — autherName): git log --pretty=format:"%h -- %an"

Categories

  • Docker
  • Git
  • Interview Questions
  • Laravel
  • Linux
  • php
  • Salesforce

Recent Posts

  • Salesforce interview question
  • Platform Developer I Certification Maintenance (Winter ’25)
  • Batch Class in Salesforce
  • Platform Developer I Certification Maintenance (Winter ’24) Get Hands-on with Bind Variables in a SOQL Query
  • How to check Salesforce current release version

Recent Posts

  • Salesforce interview question September 7, 2025
  • Platform Developer I Certification Maintenance (Winter ’25) July 16, 2025
  • Batch Class in Salesforce January 25, 2024
  • Platform Developer I Certification Maintenance (Winter ’24) Get Hands-on with Bind Variables in a SOQL Query December 19, 2023
  • How to check Salesforce current release version January 12, 2023
©2025 The Tech Paper | Powered by Abhinav Trivedi