Re: how to get 'git diff' to output patch to file
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- May 14, 2009, 12:03 UTC
- Message-ID
- <81b0412b0905140503n527d6a3ah34f4cdb72b0ce4c@mail.gmail.com>
- In-Reply-To
- <93C432AD0B8F4D25A19E0D67C535376A@HPLAPTOP>
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