git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Boaz Harrosh <bharrosh@panasas.com>
To: Boaz Harrosh <bharrosh@panasas.com>, git <git@vger.kernel.org>
Subject: Re: how to git a read only directory
Date: Thu, 22 Jan 2009 12:19:41 +0200	[thread overview]
Message-ID: <4978483D.6040105@panasas.com> (raw)
In-Reply-To: <20090122100008.GC6936@b2j>

bill lam wrote:
> On Wed, 21 Jan 2009, Boaz Harrosh wrote:
>> [~] $ mkdir gitrepo; cd gitrepo
>> [gitrepo] $ git-init
>> [gitrepo] $ ln -s /etc
>> [gitrepo] $ git-add /etc/fstab
> 

Sorry My mistake, it should be:
[gitrepo] $ git-add etc/fstab

> (I use git ver. 1.6.1, git-xxx is already deprecated)
> I followed your example, and failed in the git add,
> 
> gitrepo$  git add /etc/fstab
> fatal: '/etc/fstab' is outside repository
> 

Sorry it's a typo, sure you must add files relative to
the base directory (one containing the .git/ dir)

Cheers
Boaz

  reply	other threads:[~2009-01-22 10:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-21  8:33 how to git a read only directory bill lam
2009-01-21  9:57 ` Michael J Gruber
2009-01-21 15:48   ` bill lam
2009-01-21 12:34 ` Boaz Harrosh
2009-01-21 15:52   ` bill lam
2009-01-21 16:46     ` Boaz Harrosh
2009-01-22 10:00       ` bill lam
2009-01-22 10:19         ` Boaz Harrosh [this message]
2009-01-22 10:29           ` bill lam
2009-01-22 12:35             ` Boaz Harrosh

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=4978483D.6040105@panasas.com \
    --to=bharrosh@panasas.com \
    --cc=git@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).