How to hide personal information from public GitHub?

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!

+3
source share
3 answers

As stated in the comments: put this information in the configuration file.

: javascript config.js.template, config.js ( gitignored). , . , , , .

, , "" , , . , github!

+1

, GitHub,

.

, , , ( , , , , GitHub), ( .gitignore).

http://i.stack.imgur.com/3wuqy.png

.gitattributes ( , )

  • ( )
  • ( script )
+1

GPG, .

0

All Articles