Ignore files with git locally
Serhii Potapov May 21, 2014 #git #railsSometimes it's necessary to ignore some files in a repository only locally.
For rails developers it's often ./config/database.yml
file.
Every developer has his own database configuration.
With git it can be easily achieved, we may instruct git no to track changes in certain files:
Next time we type git status
the changes in ./config/database.yml
won't be shown.
If you think you need to track that file again, just do:
(pay attention to --no
prefix).
Thanks!