git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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".

Previous: Philip OakleyNext: Σταύρος Ντέντος
Message 5 of 6 in “Git does not recognise directory named '${sys:DATA_ROOT_DIR}'”
  1. Σταύρος ΝτέντοςSep 3, 2019
  2. Taylor BlauSep 3, 2019
  3. Σταύρος ΝτέντοςSep 3, 2019
  4. Philip OakleySep 3, 2019
  5. Junio C HamanoSep 3, 2019
  6. Σταύρος ΝτέντοςSep 3, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.