Skip to content

Instantly share code, notes, and snippets.

@Lukas238
Created August 2, 2019 22:18
Show Gist options
  • Select an option

  • Save Lukas238/0cb9bb58d9933b7e8cf2c6e18a12339c to your computer and use it in GitHub Desktop.

Select an option

Save Lukas238/0cb9bb58d9933b7e8cf2c6e18a12339c to your computer and use it in GitHub Desktop.
Git Diff and Share

Git Diff and Share

## Generate a diff file between branches:

git diff master feature1 > changes.diff 

You can then share online this diff using this webtool: https://diffy.org/

Generate a zip with all the files in the diff:

git diff --name-only master feature1 | xargs tar -zcf changes.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment