# svn cp (local paths) equivalent

2 messages from 2009-04-23 to 2009-04-23. Participants: Lachlan Deck, Deskin Miller.
Thread: https://gitlist.dev/t/19016

## Lachlan Deck, 2009-04-23 06:03

Subject: svn cp (local paths) equivalent
Message-ID: <CDE4E2DB-9017-4BDD-869C-E470FFDA9CAC@gmail.com>
URL: https://gitlist.dev/e/CDE4E2DB-9017-4BDD-869C-E470FFDA9CAC%40gmail.com

```
Hi there,

just a quick question: in svn you can cp a file or dir within your  
checkout. Is there an equivalent in git?
Thanks.

with regards,
--

Lachlan Deck

```

## Deskin Miller, 2009-04-23 06:09

Subject: Re: svn cp (local paths) equivalent
Message-ID: <86d4c5e00904222309i2727615aw3db4c0993cae6c77@mail.gmail.com>
URL: https://gitlist.dev/e/86d4c5e00904222309i2727615aw3db4c0993cae6c77%40mail.gmail.com
In-Reply-To: <CDE4E2DB-9017-4BDD-869C-E470FFDA9CAC@gmail.com>

```
On Wed, Apr 22, 2009 at 23:03, Lachlan Deck <lachlan.deck@gmail.com> wrote:
> Hi there,
>
> just a quick question: in svn you can cp a file or dir within your checkout.
> Is there an equivalent in git?

$ cp file file-copy
$ git add file-copy

It works with directories too.

Deskin Miller

```
