# Prevent deleting .gitignore file

3 messages from 2011-02-16 to 2011-02-16. Participants: baluchen, Ramkumar Ramachandra, Bert Wesarg.
Thread: https://gitlist.dev/t/26517

## baluchen, 2011-02-16 09:29

Subject: Prevent deleting .gitignore file
Message-ID: <1297848579774-6030991.post@n2.nabble.com>
URL: https://gitlist.dev/e/1297848579774-6030991.post%40n2.nabble.com

```

Friends,

Is there anyway to prevent/modify .gitignore file?

Thanks
Bala
-- 
View this message in context: http://git.661346.n2.nabble.com/Prevent-deleting-gitignore-file-tp6030991p6030991.html
Sent from the git mailing list archive at Nabble.com.

```

## Ramkumar Ramachandra, 2011-02-16 10:32

Subject: Re: Prevent deleting .gitignore file
Message-ID: <20110216103113.GA20959@kytes>
URL: https://gitlist.dev/e/20110216103113.GA20959%40kytes
In-Reply-To: <1297848579774-6030991.post@n2.nabble.com>

```
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.

-- Ram

```

## Bert Wesarg, 2011-02-16 11:53

Subject: Re: Prevent deleting .gitignore file
Message-ID: <AANLkTi=wgsaXVXARLjpyF_13m0FHFC-gubxY0r7oV__U@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTi%3DwgsaXVXARLjpyF_13m0FHFC-gubxY0r7oV__U%40mail.gmail.com
In-Reply-To: <20110216103113.GA20959@kytes>

```
On Wed, Feb 16, 2011 at 11:32, Ramkumar Ramachandra <artagnon@gmail.com> wrote:
> 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

```
