Skip to content

Instantly share code, notes, and snippets.

@mindon
Last active November 29, 2024 03:16
Show Gist options
  • Select an option

  • Save mindon/7260154730eec055c2b60d3f564c4851 to your computer and use it in GitHub Desktop.

Select an option

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

mindon commented Dec 7, 2022

Copy link
Copy Markdown
Author

avoid deleted file not exists error

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