What I usually do - and I have seen many people do the same - is keep my
configuration files with .example as their extension and ignore the ones
without that extension. For example:

database.yml.example is kept in the repository but database.yml is ignored.
That way, wherever you clone your repository, you can just copy
database.yml.example to database.yml and override your default values.

I am not sure if there is a better way to do it.

Petros

On Tue, Dec 28, 2010 at 3:28 PM, Macsig <sigbac...@gmail.com> wrote:

> Hello there,
> i need to deploy an application from GitHub but I'd like to skip some
> configuration files (I prefer to keep them in the repo because the
> contain default values). Can I use gitignore in the production server
> for this?
>
> Thanks
>
> Sig
>
> --
> You received this message because you are subscribed to the Google Groups
> "GitHub" group.
> To post to this group, send email to git...@googlegroups.com.
> To unsubscribe from this group, send email to
> github+unsubscr...@googlegroups.com<github%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/github?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"GitHub" group.
To post to this group, send email to git...@googlegroups.com.
To unsubscribe from this group, send email to 
github+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/github?hl=en.

Reply via email to