git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
AGAaron Gray <aaronngray.lists@googlemail.com>
Date
May 14, 2009, 11:52 UTC
Message-ID
<93C432AD0B8F4D25A19E0D67C535376A@HPLAPTOP>

How do I get 'git diff -u' to output to a file or standard out instead of its viewer ?

Many thanks in advance,
Aaron
Next: Alex Riesen
Message 1 of 2 in “how to get 'git diff' to output patch to file”
  1. Aaron GrayMay 14, 2009
  2. Alex RiesenMay 14, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.