Re: Excluding files from git-diff
- From
Raphael Zimmerer <killekulla@rdrz.de>
- Date
- Oct 17, 2008, 15:08 UTC
- Message-ID
- <20081017150851.GA20860@rdrz.de>
- In-Reply-To
- <20081017145313.GA23471@eriks>
On Fri, Oct 17, 2008 at 04:53:13PM +0200, Erik Hahn wrote:
> I'm currently working on a script whose developer does not use > git. Hence, when I mail him the patch, I don't want to include the > .gitignore file. Is it possible to exclude a file from git-diff (except > not adding it to git, of course?)
Just add the content of .gitignore to .git/info/exclude, and remove .gitignore from the repository.
Raphael