Preventing git from commiting config files after first commit

I'm developing a project that has some sensitive data in its config file. How can I commit the config file once to github and then ignore my further edits? Or is there another recommended solution for this situation?

0
1 comment

Hello

You will need to run the following command on a commited file, you can read more about it in official guide:

git update-index --skip-worktree <file>

There is a feature request to make it possible to do this operation in IDE UI, please feel free to vote:
https://youtrack.jetbrains.com/issue/IDEA-76682

0

Please sign in to leave a comment.