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

copying objects from another repo?

From
MTMichael S. Tsirkin <mst@dev.mellanox.co.il>
Date
Jul 24, 2007, 10:35 UTC
Message-ID
<20070724103503.GC18701@mellanox.co.il>

I had some missing objects that I managed to locate in another tree. So - how to get them to my repo? Here's what I came up with:

cd ~/scm/good_tree git tag -f foo dfaa7049e9ebe227cfcffc49d3de16716764bcbd cd ~/scm/bad_tree git fetch-pack ~/scm/good_tree dfaa7049e9ebe227cfcffc49d3de16716764bcbd

And I repeated this for all missing objects. But is there a better way to do this?

-- 
MST
Next: Johannes Schindelin
Message 1 of 2 in “copying objects from another repo?”
  1. Michael S. TsirkinJul 24, 2007
  2. Johannes SchindelinJul 24, 2007

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.