git diff file1, file2, file3 ... > temp.patch
and
git apply temp.patch
worked perfectly for me... thanks Enrico for the answer.