How do I get 'git diff -u' to output to a file or standard out instead of its viewer ?
Many thanks in advance,
Aaron
threads / discuss / 19348
Subject: how to get 'git diff' to output patch to file
How do I get 'git diff -u' to output to a file or standard out instead of its viewer ?
Many thanks in advance,
Aaron
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