How to get a list of commits that touched a given line of code (git)

I want the cherry picking from one branch to another, but they diverged greatly. How can I get a list of commits that modified this part of the file?

+3
source share
1 answer

2 common solutions:

Indicates each line in a given file with information from the revision that last modified the line. Optionally, start annotating with this revision.

The command can also limit the range of annotated lines.

to quickly identify which commit introduced certain changes.

. " git ..."

+3

Source: https://habr.com/ru/post/1729400/


All Articles