I have a google_oauth_server.xml file in my project. It contains a client id, which I would like to not get checked into the repository.
<?xml version="1.0" encoding="utf-8"?>
<!-- Do not split into debug and release, as there is one server-->
<resources>
<string name="google_server_client_id" templateMergeStrategy="preserve" translatable="false">
---my-code--
</string>
</resources>
Instead, I want the file to exist in the repo, but with the words YOUR CODE HERE
instead of the code.
I tried committing a file with the words YOUR_CODE_HERE
instead of the code, then changing the words to my actual client id, and then adding the file to .gitignore
to prevent it from getting committed, but it does not work, and git always tries to commit the file with the client id.