Skip to content

Find When A Specific Line Was Removed

Git: Find which commit removed a certain line of code#

Usage#

git log -c -S'<line you noticed changed>' <filename>

Example:

git log -c -S'``django_jenkins.tasks.run_jshint``' README.rst

Source: Stackoverflow: git find when a line was deleted