Skip to content

Instantly share code, notes, and snippets.

@mapkyca
Created October 2, 2014 09:57
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 mapkyca/f4b7b30e66af147430b7 to your computer and use it in GitHub Desktop.
Save mapkyca/f4b7b30e66af147430b7 to your computer and use it in GitHub Desktop.
Git files only patch

To create a patch to upload to a server via ftp/scp, containing modified files rather than a diff patch.

  • Create your work on a new branch
  • Create a patch containing full modified files, while in your git repo

git diff --name-only master | xargs -i{} cp --parents {} /tmp/mypatch/

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