Prevent deleting .gitignore file
Friends,
Is there anyway to prevent/modify .gitignore file?
Thanks
Bala
Signature · 2 lines
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.
Hi,
Quoted 1 line · baluchen
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
Quoted 7 lines · Ramkumar Ramachandra
Hi,
Quoted 1 line · baluchen
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
Quoted 2 lines
-- Ram