Use git add to add changes to the newly added files
Commit changes using git commit
Use git log to view the commit id of the commit
use command
git diff-tree -r --no-commit-id --name-only d18f9d5f17e190cfbb836a4acff2d96c0d466a2c | xargs tar -rf mytarfile.tar
Pack the modified files