Skip to content

Amritpal Singh

  • About

diff

December 31, 2017December 31, 2017 admin

Git commands

  1. Get list all commits for a specific file:
    git log --follow filename
    Source: https://stackoverflow.com/a/8808453/7651641

  2. Find commit that first added a particular line of code:
    git log -L 123,123:path/to/file.cpp
    Source: https://superuser.com/a/939603

  3. See changes on a specific commit:
    git diff COMMIT^!
    Source: https://stackoverflow.com/a/17563864/7651641

 

Enter your email address

Recent Posts

  • Comparison of reading IfcGloballyUniqueId from IFC in different OS
  • Git commands
  • Kill a process running on particular port in Linux
  • Deploy/Run a Django app with Apache and Gunicorn in Ubuntu
  • Deploy/Run a Django app with Nginx, Gunicorn and Supervisor in Ubuntu

Recent Comments

  • maillot de foot on Solving Differential Equation Representing Simple Harmonic Motion in SageMath
  • Elizabet Alward on Solving Differential Equation Representing Simple Harmonic Motion in SageMath
  • Jude Soloman on Solving Differential Equation Representing Simple Harmonic Motion in SageMath
  • Irina Ledec on Solving Differential Equation Representing Simple Harmonic Motion in SageMath
  • Harmanpreet Singh on Export drawing sheets of FreeCAD into PDF and SVG format from Python console – Done

Archives

  • March 2019
  • December 2017
  • November 2017
  • July 2017
  • March 2017
  • February 2017
  • January 2017
  • November 2016
  • September 2016
  • July 2016
  • June 2016
  • March 2016
  • February 2016
  • December 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015

Archives

Recent Posts

  • Comparison of reading IfcGloballyUniqueId from IFC in different OS
  • Git commands
  • Kill a process running on particular port in Linux
  • Deploy/Run a Django app with Apache and Gunicorn in Ubuntu
  • Deploy/Run a Django app with Nginx, Gunicorn and Supervisor in Ubuntu
  • About