Skip to content

Instantly share code, notes, and snippets.

@mindon
Last active December 7, 2022 08:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mindon/7260154730eec055c2b60d3f564c4851 to your computer and use it in GitHub Desktop.
Save mindon/7260154730eec055c2b60d3f564c4851 to your computer and use it in GitHub Desktop.
patch last git submit as a zip
git diff HEAD@{1} --diff-filter=ACMR --name-only -z | xargs -0 git archive HEAD -o patch_$(date +'%Y%m%d').zip --
@mindon
Copy link
Author

mindon commented Dec 7, 2022

avoid deleted file not exists error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment