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

Re: How to ignore deleted files

From
Jakub Narebski <jnareb@gmail.com>
Date
Mar 11, 2008, 14:10 UTC
Message-ID
<m3y78pxsf5.fsf@localhost.localdomain>
In-Reply-To
<47D68203.10905@bioinf.uni-sb.de>
Andreas Hildebrandt <anhi@bioinf.uni-sb.de> writes:
Show 8 quoted lines
> Dear all,
> 
> our git repository contains a number of .tar.gz - files that are
> automatically extracted and then deleted during the build process.
> Unfortunately, commiting any changes after that step will mark those
> files as deleted and try to commit that to the repository. Is there any
> way to tell git to ignore those files automatically (apart from changing
> our build process not to use or not to delete those files)?

I don't quite understand: are those .tar.gz files stored in _source_ repository? That would be a bit strange...

I guess that you have tried adding "*.tar.gz" to either .gitignore or .git/info/excludes file?

Another solution would be (if they are truly needed to reside in repository) to re-checkout them as a last part of build process / after-build process.

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Andreas HildebrandtNext: Andreas Hildebrandt
Message 2 of 6 in “How to ignore deleted files”
  1. Andreas HildebrandtMar 11, 2008
  2. Jakub NarebskiMar 11, 2008
  3. Andreas HildebrandtMar 11, 2008
  4. Santi BéjarMar 11, 2008
  5. Git and pristine-tarSergio Callegari, Mar 11, 2008
  6. David TweedMar 11, 2008

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.