Thanks for your reply. I have the following scenario:
MACHINE A: used for development MACHINE B: used for production When a new release is ready I commit it from A to github and from github I pull it to B (in order to deploy the latest version). My question is: if I add a file into gitignore on B does it pull that file from github or not? If not, how can I achieve so? Thanks and have a nice day. Sig On Dec 28 2010, 5:42 am, Petros Amiridis <[email protected]> wrote: > 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 <[email protected]> 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 [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<github%[email protected]> > > . > > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/github?hl=en.
