I am new to GIT commands and having tough time with it :(. My requirement is to use GIT command in PowerShell and do some logic. How to combine GIT diff with commitID and folder path?
This works-
>$(git diff --name-status HEAD~1..HEAD ROOT/subFolder)
output: M ROOT/subFolder/file.txt
-----This is what I want but using commit id
These commands don't work
>$(git diff --name-status 5d658f9e ROOT/subFolder) **with commit id**
>$(git diff --name-status 5d658f9e..HEAD -- ROOT/subFolder) **with commit id & HEAD**
>$(git diff --name-status HEAD --diff-filter=ADMR -- ROOT/subFolder) **with commit id**
why the 1st command only works and others don't work?