Some times you create a file like password.properties, that you commit with fake values. But then you want to update the content of that file and be sure that is never pushed to the remote.
To do that you have to follow the next steps:
- Create the fake password.properties with fake data.
- Commit the changes
- Add password.properties to your .gitignore
- Avoid future git updates with: git update-index –assume-unchanged password.properties