How to get all changed file – modified file as compressed Zip file in GIT

You made some changes in folk or repository. Need to send as mail or compress these changes as backup.

Step 1 : Go to git bash

Step 2 : git ls-files --modified – To list all changed files.

Step 3: zip modified-files.zip $(git ls-files --modified)

Step 4: Check your local repository. You can able to see modified-files.zip