git: how to quickly find and see changes in last commits

Very well know situation: you want to see changes in the concrete file between last commits. Only what was changed…



# installation

curl > glchng
chmod a+x glchng
mv glchng ~/bin

# using

cd ./your-repo-dir

# changes between last commits
glchng ./your-file-name

# or if you want to see all changes in 10 last commits
glchng ./your-file-name 10

fast and comfy