git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Prevent deleting .gitignore file
@ 2011-02-16  9:29 baluchen
  2011-02-16 10:32 ` Ramkumar Ramachandra
  0 siblings, 1 reply; 3+ messages in thread
From: baluchen @ 2011-02-16  9:29 UTC (permalink / raw)
  To: git


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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Prevent deleting .gitignore file
  2011-02-16  9:29 Prevent deleting .gitignore file baluchen
@ 2011-02-16 10:32 ` Ramkumar Ramachandra
  2011-02-16 11:53   ` Bert Wesarg
  0 siblings, 1 reply; 3+ messages in thread
From: Ramkumar Ramachandra @ 2011-02-16 10:32 UTC (permalink / raw)
  To: baluchen; +Cc: git

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Prevent deleting .gitignore file
  2011-02-16 10:32 ` Ramkumar Ramachandra
@ 2011-02-16 11:53   ` Bert Wesarg
  0 siblings, 0 replies; 3+ messages in thread
From: Bert Wesarg @ 2011-02-16 11:53 UTC (permalink / raw)
  To: Ramkumar Ramachandra; +Cc: baluchen, git

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-02-16 11:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-16  9:29 Prevent deleting .gitignore file baluchen
2011-02-16 10:32 ` Ramkumar Ramachandra
2011-02-16 11:53   ` Bert Wesarg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).