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

Re: how to git a read only directory

From
Boaz Harrosh <bharrosh@panasas.com>
Date
Jan 22, 2009, 10:19 UTC
Message-ID
<4978483D.6040105@panasas.com>
In-Reply-To
<20090122100008.GC6936@b2j>
bill lam wrote:
Show 6 quoted lines
> 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

Show 6 quoted lines
> (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

Previous: bill lamNext: bill lam
Message 8 of 10 in “how to git a read only directory”
  1. bill lamJan 21, 2009
  2. Michael J GruberJan 21, 2009
  3. bill lamJan 21, 2009
  4. Boaz HarroshJan 21, 2009
  5. bill lamJan 21, 2009
  6. Boaz HarroshJan 21, 2009
  7. bill lamJan 22, 2009
  8. Boaz HarroshJan 22, 2009
  9. bill lamJan 22, 2009
  10. Boaz HarroshJan 22, 2009

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.