Git: Ignore files for public repository, but not for private

后端 未结 8 1058
心在旅途
心在旅途 2020-12-01 07:54

I\'m deploying a Rails app on Heroku (for now) via git, and would also like to have a public version for people to look at. Some files are sensitive and should only be commi

8条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-01 08:03

    A guy named David Albert wrote a tool called Junk to solve almost exactly this problem. It lets files from a separate “junk drawer” repository live alongside the ones in your main repository.

    The private files will have separate commits from the public ones, but it might do the job.

提交回复
热议问题