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