Skip to content

Instantly share code, notes, and snippets.

@misfo
Created February 12, 2015 22:19
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 misfo/7aa0b4ffe523a6c994c6 to your computer and use it in GitHub Desktop.
Save misfo/7aa0b4ffe523a6c994c6 to your computer and use it in GitHub Desktop.
Apply the working copy git changes from a remote server to local copy (I would never make changes on a server, I swear)
ssh tehawesome.example.com 'cd /the/app/dir && git diff' | git apply -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment