Skip to contentSkip to conversation

Prevent deleting .gitignore file

DISCUSSION baluchen 3 participants 3 messages Jun 15, 2016

lore
Share & tools
lore

baluchen

author
#0 lore raw

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.
#1 lore raw

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

#2 lore raw
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