Git: How to ignore a file from one repo and add it to another?

前端 未结 2 1673
滥情空心
滥情空心 2021-02-09 12:47

I have a Ruby on Rails application that I am trying to host on Heroku. I would also like to use a GitHub public (free) repository to track changes. I need to check-in a file con

2条回答
  •  名媛妹妹
    2021-02-09 12:57

    As VonC mentioned, the best (and least error-prone) bet is to keep sensitive config info out of Git and put them in environment variables on your server. Here are instructions for how to do so on Heroku:

    http://docs.heroku.com/config-vars

    See also the linked questions.

提交回复
热议问题