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

Re: How to exclude files from "git diff"

From
HLH.J. Lu <hjl.tools@gmail.com>
Date
Jan 5, 2010, 18:15 UTC
Message-ID
<6dc9ffc81001051015x3bebc994r3d475bdb59e12d39@mail.gmail.com>
In-Reply-To
<37fcd2781001050954y778ba661n7cee6cda699968c2@mail.gmail.com>
On Tue, Jan 5, 2010 at 9:54 AM, Dmitry Potapov <dpotapov@gmail.com> wrote:
Show 9 quoted lines
> On Tue, Jan 5, 2010 at 5:20 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
>>
>> Yes, I want those files in repository. They are for my personal use only.
>
> If you modified some file locally and do not want to see and commit
> those modifications, you may want to use:
>
> git update-index --assume-unchanged foo
>

I added those files into my repository for bookkeeping purpose. It shouldn't go out at all.

-- 
H.J.
Previous: Dmitry PotapovNext: Nguyen Thai Ngoc Duy
Message 5 of 7 in “How to exclude files from "git diff"”
  1. H.J. LuDec 18, 2009
  2. Jeff KingJan 5, 2010
  3. H.J. LuJan 5, 2010
  4. Dmitry PotapovJan 5, 2010
  5. H.J. LuJan 5, 2010
  6. Nguyen Thai Ngoc DuyJan 5, 2010
  7. Junio C HamanoJan 5, 2010

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.