I'm developing a Python script but I need to include my public and secret Twitter API key for it to work. I'd like to make my project public but keep the sensitive information secret using Git and GitHub. Though I highly doubt this is possible, is there any way to block out that data in a GitHub public repo?
No. Instead, load the secret information from a file and add that file to .gitignore so that it will not be a part of the repository.
GitHub public repo with sensitive information?