Search for date / time when file appeared in git branches

How can I get the date when the file first appeared in the branch.

I am currently using the following. The problem is that for mergers, it returns the creation date in the source branch instead of returning the merge date.

$ git log --first-parent --format=%ct FILE

+6
source share
1 answer
+1
source

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


All Articles