I used almost all git log commands yet i haven\'t found a best way to do this. I need only this - get only file name with path nothing else
/path/filename.tx
Use --name-only and remove the message with an empty format
--name-only
git log --name-only --format=""
Just use all other git log options as usual. E.g.
git log
git log --name-only --format="" -n 2 master
Optionally sort and remove dupplicates
git log --name-only --format="" | sort | uniq