# How to add new tree?

2 messages from 2005-05-12 to 2005-05-12. Participants: Alexey Nezhdanov, David Greaves.
Thread: https://gitlist.dev/t/583

## Alexey Nezhdanov, 2005-05-12 11:44

Subject: How to add new tree?
Message-ID: <200505121544.23902.snake@penza-gsm.ru>
URL: https://gitlist.dev/e/200505121544.23902.snake%40penza-gsm.ru

```
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?

-- 
Respectfully
Alexey Nezhdanov


```

## David Greaves, 2005-05-12 12:03

Subject: Re: How to add new tree?
Message-ID: <42834603.1080604@dgreaves.com>
URL: https://gitlist.dev/e/42834603.1080604%40dgreaves.com
In-Reply-To: <200505121544.23902.snake@penza-gsm.ru>

```
Alexey Nezhdanov wrote:

>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

-- 


```
