threads / discuss / 19348

how to get 'git diff' to output patch to file

Subject: how to get 'git diff' to output patch to file

## tl;dr

2 messages between May 14, 2009 and May 14, 2009.

replies: 1people: 2as markdown or json

Alex Riesen· May 14, 2009, 12:03 UTC · re: Aaron Gray · lore

Re: how to get 'git diff' to output patch to file

2009/5/14 Aaron Gray <aaronngray.lists@googlemail.com>:
> How do I get 'git diff -u' to output to a file or standard out instead of
> its viewer ?
>
  git diff -u > file
  GIT_PAGER=: git diff -u (stdout)
or, depending on how old your Git is
  git --no-pager diff -u

← back to recent threads