I am sharing my Java project on GitHub (because I believe in open source and without hidden tricks). In any case, I have a unique UserAgent that I got from the website for using the API ... I want to know how I can hide this from GitHub without making my project private ... What can I do? I tried searching Google, but no one seemed to be facing the same problem. I cannot use a separate file and then add it to .gitignore because it will not work when deploying a project. Please, help!
As stated in the comments: put this information in the configuration file.
: javascript config.js.template, config.js ( gitignored). , . , , , .
config.js
, , "" , , . , github!
, GitHub,
.
, , , ( , , , , GitHub), ( .gitignore).
.gitattributes ( , )
GPG, .