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

Re: svn cp (local paths) equivalent

From
DMDeskin Miller <deskinm@gmail.com>
Date
Apr 23, 2009, 06:09 UTC
Message-ID
<86d4c5e00904222309i2727615aw3db4c0993cae6c77@mail.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
Previous: Lachlan Deck
Message 2 of 2 in “svn cp (local paths) equivalent”
  1. Lachlan DeckApr 23, 2009
  2. Deskin MillerApr 23, 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.