T
T
thatside2015-03-02 23:57:19
symfony
thatside, 2015-03-02 23:57:19

How to set the correct ignore in Mercurial?

The question, of course, is old, but I did not find a specific and clear solution.
There is a project on Symfony. Two people are working on it, respectively, each has local servers, say. And there is a production server where it is spinning.
app/config stores settings files, among which there may be settings specific to each - the same database settings. How to correctly organize the ignore of these files for unloading? That is, so that they remain in production in the state in which they have always been, and at the same time, everyone has their own on local computers.
Tried through hgignore - hgignore itself is added - the file itself is added to the commit list.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
exenza, 2015-03-03
@exenza

Add the absolute path to hgignore to your repository's .hg/hgrc

[ui]
ignore = /path/to/repo/.hgignore

Mercurial Tips And Tricks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question