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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/5/14 Aaron Gray <aaronngray.lists@xxxxxxxxxxxxxx>:
> 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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]