Skip to content

Instantly share code, notes, and snippets.

@vovayatsyuk
Created June 18, 2013 06:46
Show Gist options
  • Select an option

  • Save vovayatsyuk/5803147 to your computer and use it in GitHub Desktop.

Select an option

Save vovayatsyuk/5803147 to your computer and use it in GitHub Desktop.
Git: Put changed files to archive
git archive --format=zip new_branch `git diff old_branch new_branch --name-only` > file.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment