git blame -C

Display author's modifications per line in a file while copying or moving across files

This command is used to track who made changes to a file line by line.

The -C flag additionally follows lines moved or copied from other files that were modified in the same commit. It takes the output and adds an annotation on the left, indicating the last author who modified each line.

You can dig deeper into the history of moved or copied code by applying the -C flag more than once in the command. For example, -CC or -CCC to iteratively track code movement across files, with each extra C making the command slower but more accurate.

Sign in to enable bookmarking, reminders, progress-tracking and more...