.gitignore helps secure config files
How to use .gitignore:
- In your git project open file .gitignore

2. Add files names or directories you don’t want to push to github
3. Remove files from git track with below command
$git rm — cached FILENAME
Now file changes will not be push to github.