Skip to content

Instantly share code, notes, and snippets.

@Mygod
Last active August 29, 2015 14:07
Show Gist options
  • Save Mygod/7abc15491f2c2df2694a to your computer and use it in GitHub Desktop.
Save Mygod/7abc15491f2c2df2694a to your computer and use it in GitHub Desktop.
Update patch generator for customized Drupal, WordPress, etc.
git checkout main-old
git checkout -b main-new
: extract new content here...
git commit -a -m main-new
git checkout -b mine-new
git merge mine-old
git diff mine-old --name-only > patch-files.txt
: If this is the first one, use this:
: git ls-tree --full-tree -r --name-only HEAD > patch-files.txt
7zG a patch.zip @patch-files.txt -mx9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment