0

I am working on a project using an API that I would like to be able to upload to Github, but my code includes my private keys and secret tokens that I do not want uploaded. Is there a way to specifically exclude that information from being pushed while retaining the rest of the file?

Anonymous
  • 93
  • 8
  • 4
    Your secret information should be in an entirely separate *file*, and yes, it's possible to not commit that file. It's not possible to upload only part of a file. – Obsidian Age Aug 09 '19 at 02:43
  • 1
    Yes: https://stackoverflow.com/a/16754763/6309, https://stackoverflow.com/a/48449663/6309 – VonC Aug 09 '19 at 04:52

0 Answers0