Git development
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Taylor Blau <me@ttaylorr.com>
Cc: "Σταύρος Ντέντος" <stdedos@gmail.com>, git <git@vger.kernel.org>
Subject: Re: Git does not recognise directory named '${sys:DATA_ROOT_DIR}'
Date: Tue, 03 Sep 2019 12:08:09 -0700	[thread overview]
Message-ID: <xmqqa7bltcyu.fsf@gitster-ct.c.googlers.com> (raw)
In-Reply-To: <20190903133422.GA51158@syl.lan> (Taylor Blau's message of "Tue, 3 Sep 2019 09:34:22 -0400")

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

  parent reply	other threads:[~2019-09-03 19:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-03 12:44 Git does not recognise directory named '${sys:DATA_ROOT_DIR}' Σταύρος Ντέντος
2019-09-03 13:34 ` Taylor Blau
2019-09-03 14:11   ` Σταύρος Ντέντος
2019-09-03 16:45     ` Philip Oakley
2019-09-03 19:08   ` Junio C Hamano [this message]
2019-09-03 19:55     ` Σταύρος Ντέντος

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xmqqa7bltcyu.fsf@gitster-ct.c.googlers.com \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=me@ttaylorr.com \
    --cc=stdedos@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox