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

moving a repository question

From
PKPaul Kinzelman <paul@kinzelman.com>
Date
Jul 14, 2022, 22:06 UTC
Message-ID
<2e592944-edb8-2d49-981a-8ad220f97e82@kinzelman.com>

I barely qualify as a novice on git, so my apologies in advance if this is a stupid question.

Is everything that git needs stored in the .git tree?

In understanding the big picture... Is there any reason I can't just move or copy the entire .git tree someplace else if I wanted to move or make a copy?

I realize about the clone command, but wouldn't just a straight copy be easier (in the vanilla case where no branches or anything complicate things)? TIA! -Paul Kinzelman

Next: Junio C Hamano
Message 1 of 4 in “moving a repository question”
  1. Paul KinzelmanJul 14, 2022
  2. Junio C HamanoJul 14, 2022
  3. Paul KinzelmanJul 15, 2022
  4. RDP over VPN can't see a .git directory to be able to pullPaul Kinzelman, Jul 15, 2022

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.