Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add project.lock.json file to gitignore

Tags:

git

gitignore

I am trying something like below:

#DNX
project.lock.json

and

*.lock.json

but it does not seem to be ignoring these files.

like image 731
tavier Avatar asked Apr 21 '16 08:04

tavier


1 Answers

If file is already tracked to git, then you must first remove it(physically file must be placed out of git folder for the time), commit changes and add the file again to folder. Then git will begin ignoring it using your instruction.

like image 87
Factory Girl Avatar answered Oct 06 '22 01:10

Factory Girl