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

Re: Prevent deleting .gitignore file

From
Bert Wesarg <bert.wesarg@googlemail.com>
Date
Feb 16, 2011, 11:53 UTC
Message-ID
<AANLkTi=wgsaXVXARLjpyF_13m0FHFC-gubxY0r7oV__U@mail.gmail.com>
In-Reply-To
<20110216103113.GA20959@kytes>
On Wed, Feb 16, 2011 at 11:32, Ramkumar Ramachandra <artagnon@gmail.com> wrote:
Show 7 quoted lines
> Hi,
>
> baluchen writes:
>> Is there anyway to prevent/modify .gitignore file?
>
> Just track it in Git? Everytime you try to stage changes and commit,
> Git will alert you when .gitignore has changed.
And writing a pre-commit-hook, which checks for changes to .gitignore.
Bert
>
> -- Ram
Previous: Ramkumar Ramachandra
Message 3 of 3 in “Prevent deleting .gitignore file”
  1. baluchenFeb 16, 2011
  2. Ramkumar RamachandraFeb 16, 2011
  3. Bert WesargFeb 16, 2011

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.