【发布时间】:2012-05-23 11:04:23
【问题描述】:
我想在我的一个项目中添加一个远程 git 协作者,但我不想让他访问我在 database.yml 中的密码。我知道如何 .gitignore database.yml 并相应地清除 repo,但问题是我正在将这个特定项目部署到 DotCloud,据我所知,这需要 database.yml 成为 git repo 的一部分。我现在能想到的最好的解决方案是使用 rsync 推送到 DotCloud,但我宁愿直接从 git repo 推送。有人知道我可以这样做吗?
【问题讨论】:
-
我不知道 DotCloud 是什么,但我很难相信任何平台都会要求你在 git repo 中输入密码。