Hi all,
Is it possible to ignore specific files in git only for certain remotes? e.g., I'm storing AWS S3 credentials (s3.yml
) in a file for an app hosted on Heroku, thus I need to check s3.yml
into my repo for the deploy to work. However, I'd like to publish the source to GitHub as well, so I would be wise to keep s3.yml
out of the repo. I would imagine it working something like
#.gitignore
github:config/s3.yml
but haven't been able to find anything in the git docs. Is this possible? Or do I need to maintain two separate repos?
Thanks!