9951 explained code solutions for 126 technologies


gitGet history of a file


git log filectrl + c
git

base command

log

will show interactive commits log viewer

file

file path to get history for


Usage example

git log README.md
output
commit 545a6f9f02b7d99c2663f9a20fdc1111f3137b79
Author: Joe Markberg / code editor <[email protected]>
Date:   Fri Oct 8 13:49:19 2021 +0300

    Update README.md

commit bbe2a68922ffff28b496c911771092ff1d99e980
Author: Joe Markberg / code editor <[email protected]>
Date:   Fri Oct 1 20:25:33 2021 +0300

    Update README.md

commit 393d678f649d85b19bb231c5b71722f5c0a30733
Author: Joe Markberg <[email protected]>
Date:   Tue Aug 31 16:18:30 2021 +0300

    Initial commit