Is there anyway to see how a file\'s size has changed through time in a git repository? I want to see how my main.js file (which is the combination of several files and mini
On Windows I am using the following command:
cmd /c "@echo off & for /l %N in (1 1 30) do git ls-tree -r -l HEAD~%N "C:\path\to\file.txt"
It will show size of each of latest 30 versions.
If somebody can convert that to Linux command you are welcome... ))
Simply do:
git log --stat /path/to/file
Result: