How to find all changed files since last commited build in GIT ? I want to build not only the changed files at head revision but also, all the changed files which got chang
If you need this for Jenkins.
prev_merge=$(git log |grep -C1 Merge | grep commit |head -n1 | awk {'print $2'}) commit=$(git log |head -n 1 | awk {'print $2'}) git diff --name-only $prev_merge $commit