Re: Git does not recognise directory named '${sys:DATA_ROOT_DIR}'
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 3, 2019, 19:08 UTC
- Message-ID
- <xmqqa7bltcyu.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <20190903133422.GA51158@syl.lan>
Taylor Blau <me@ttaylorr.com> writes:
> If you wish to keep this directory "empty", but stored in Git, a common > convention is to create an empty '.gitkeep' file in the directory. This > file is not special in any way to Git, rather it serves as _a_ file to > keep the directory non-empty.
Hmph, I thought the common convention was to create a ".gitignore" file in the directory with catch-all pattern, so that no matter what cruft you had there "git add" will not add anything from it, if you wish to keep this directory "empty".