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

Re: Modifying a bare repo directly

From
JGJulian Goacher <julian.goacher@gmail.com>
Date
Apr 11, 2017, 21:35 UTC
Message-ID
<CAG_DJY=3Q1hcGnD72hwhdHxVReD4g7JZou=cm32_WECoJf+5nA@mail.gmail.com>
In-Reply-To
<20170410182209.GA18358@dcvr>

Thanks for the replies; is there anything that needs to be known about concurrent updates on a repo when using plumbing commands?

On 10 April 2017 at 19:22, Eric Wong <e@80x24.org> wrote:
Show 12 quoted lines
> Julian Goacher <julian.goacher@gmail.com> wrote:
>> Is it possible to modify a bare repo directly? e.g. is it possible to
>> insert a file into a bare repo without first cloning a non-bare copy?
>> I'm thinking along the lines of a command or sequence of commands that
>> modifies the file index and then copies the file blob into /objects,
>> but in a situation where the new file exists separately from the
>> target repo.
>
> Yes.  You can use the commands Ævar and Jeff talked about as
> (those are probably the easiest).  "git fast-import" is also
> great to avoid using an index entirely; it can be much faster
> for mass modifications.
Previous: Eric WongNext: Jeff King
Message 5 of 6 in “Modifying a bare repo directly”
  1. Julian GoacherApr 10, 2017
  2. Ævar Arnfjörð BjarmasonApr 10, 2017
  3. Jeff KingApr 10, 2017
  4. Eric WongApr 10, 2017
  5. Julian GoacherApr 11, 2017
  6. Jeff KingApr 12, 2017

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.