1

I'm open sourcing a website I'm working on, and need to exclude some files (tos, privacy policy, etc) from the public repository that I'll be publishing at GitHub.

What workflow would you suggest that allows to keep those files tracked in Git, preferably in the same repository (I'm working with heroku, and its not very convenient to deploy applications with multiple repos), but exclude them from the public repository?

shesek
  • 4,584
  • 1
  • 28
  • 27
  • Does this help you? http://stackoverflow.com/questions/315911/git-for-beginners-the-definitive-practical-guide#316062 – Lucio Jul 25 '13 at 17:38
  • 1
    If you want to track files locally but **not** push them to GitHub, then http://stackoverflow.com/questions/9556807/track-files-locally-but-never-allow-them-to-be-pushed-to-the-remote-repository – tehsockz Jul 25 '13 at 17:39
  • 1
    @Lucio I know how to ignore files, but I don't want to ignore those files. I want to track their modifications with Git, and I also need to be able to push it to production on Heroku – shesek Jul 25 '13 at 17:43
  • @tehsockz multiple repos and symlinks/submodules isn't very convenient with PaaS providers like Heroku. They expect the app to come as a single repository with all the relevant data. I could use submodules and have Heroku fetch it from another server, but then I would have to authenticate Heroku somehow, and I'm not quite sure how that can be done. – shesek Jul 25 '13 at 17:48
  • @shesek then you're really out of luck with git, afaik. Why do you need to exclude the TOS and privacy policy, anyways? – tehsockz Jul 25 '13 at 17:53
  • @tehsockz my lawyer insists on that. – shesek Jul 25 '13 at 18:26

0 Answers0