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

Re: Newbie question

From
GSGeorge Spelvin <linux@horizon.com>
Date
Sep 23, 2010, 04:59 UTC
Message-ID
<20100923045930.16223.qmail@science.horizon.com>
Jakub Narebski wrote:
> You have the repository itself (the object database containg all
> version info plus other info).  Put those files and directories into
> <project>/.git subdirectory, and use "git checkout" from within it.
> You should have checked out files in <project>/ directory.

What he said. Cloning it in the first place is the easier approach, but what happened is that you got a copy of a "bare" repostitory (without checked-out files, suitable only for remote access), which is typically in a directory named "project.git".

What you want is a normal tree, where all the git files are in "project/.git"
This is pretty easy to do:

mkdir project mv project.git project/.git cd project git config core.bare true git checkout

That does 3 things:
- Set up the directory structure correctly,
- unset the core.bare flag, which disables certain commands that
  make no sense on a bare repository, and
- Check out a working copy
Next: Thomas Hochstein
Message 1 of 2 in “Re: Newbie question”
  1. George SpelvinSep 23, 2010
  2. Thomas HochsteinSep 23, 2010

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.