Use git to package files modified by a commit

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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325481916&siteId=291194637