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

Re: How to add new tree?

From
David Greaves <david@dgreaves.com>
Date
May 12, 2005, 12:03 UTC
Message-ID
<42834603.1080604@dgreaves.com>
In-Reply-To
<200505121544.23902.snake@penza-gsm.ru>
Alexey Nezhdanov wrote:
Show 15 quoted lines
>Hello.
>Probably a lame question but I can figure out how to add new directory to repo 
>neither with cogito nor with git.
>
>a simple example:
>=========
>$mkdir newdir
>$cg-add newdir
>cg-add: newdir does not exist
>$
>==========
>How can this be resolved?
>
>  
>

git (and so cogito) manage content. Directories have no content

Add a file within it cg-add newdir/file

and it will create a tree as needed.
David
Previous: Alexey Nezhdanov
Message 2 of 2 in “How to add new tree?”
  1. Alexey NezhdanovMay 12, 2005
  2. David GreavesMay 12, 2005

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.