threads / discuss / 26517

Prevent deleting .gitignore file

Subject: Prevent deleting .gitignore file

## tl;dr

3 messages between Feb 16, 2011 and Feb 16, 2011.

replies: 2people: 3as markdown or json

baluchen· Feb 16, 2011, 09:29 UTC · lore
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· Feb 16, 2011, 10:32 UTC · re: baluchen · lore

Re: Prevent deleting .gitignore file

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· Feb 16, 2011, 11:53 UTC · re: Ramkumar Ramachandra · lore

Re: Prevent deleting .gitignore file

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

← back to recent threads