Menu
The Tech Paper
  • Home
  • Interview Questions
    • PHP String Interview Question
    • PHP Array Interview Qutions
    • jQuery Interview Quetions
    • PHP Interviwe Question on php.ini file
    • htaccess File Interview Quetions
  • About
The Tech Paper

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

Recent Posts

  • Ubuntu 20.04 Bluetooth not working [Resolved]
  • Git Log Commands
  • Create a swap memory in Linux
  • Hide protected files in Laravel
  • Make a bootable pendrive in Linux

Archives

  • January 2021
  • December 2020
  • September 2020
  • July 2020
  • January 2020
  • July 2019
  • August 2018
  • June 2018
  • April 2018
  • September 2017
  • June 2017
  • May 2017

Recent Posts

  • Ubuntu 20.04 Bluetooth not working [Resolved] January 22, 2021
  • Git Log Commands January 22, 2021
  • Create a swap memory in Linux December 2, 2020
  • Hide protected files in Laravel September 21, 2020
  • Make a bootable pendrive in Linux September 10, 2020

Contact Us

©2021 The Tech Paper | Powered by SuperbThemes & WordPress