{"thread":{"id":"25204","subject":"Re: Newbie question","startedAt":"2010-09-23T04:59:30Z","lastAt":"2010-09-23T06:29:31Z","messageCount":2,"participants":["George Spelvin","Thomas Hochstein"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"151340","messageId":"20100923045930.16223.qmail@science.horizon.com","threadId":"25204","inReplyTo":null,"subject":"Re: Newbie question","fromName":"George Spelvin","fromEmail":"linux@horizon.com","sentAt":"2010-09-23T04:59:30Z","receivedAt":"2010-09-23T04:59:30Z","isPatch":false,"sender":{"key":"linux@horizon.com","avatar":null},"body":"Jakub Narebski wrote:\n> You have the repository itself (the object database containg all\n> version info plus other info).  Put those files and directories into\n> <project>/.git subdirectory, and use \"git checkout\" from within it.\n> You should have checked out files in <project>/ directory.\n\nWhat he said.  Cloning it in the first place is the easier approach, but\nwhat happened is that you got a copy of a \"bare\" repostitory (without\nchecked-out files, suitable only for remote access), which is typically\nin a directory named \"project.git\".\n\nWhat you want is a normal tree, where all the git files are in \"project/.git\"\n\nThis is pretty easy to do:\n\nmkdir project\nmv project.git project/.git\ncd project\ngit config core.bare true\ngit checkout\n\nThat does 3 things:\n- Set up the directory structure correctly,\n- unset the core.bare flag, which disables certain commands that\n  make no sense on a bare repository, and\n- Check out a working copy\n"},{"id":"151402","messageId":"gcvg.1009230829.2937@thorondor.akallabeth.de","threadId":"25204","inReplyTo":"20100923045930.16223.qmail@science.horizon.com","subject":"Re: Newbie question","fromName":"Thomas Hochstein","fromEmail":"thh@inter.net","sentAt":"2010-09-23T06:29:31Z","receivedAt":"2010-09-23T06:29:31Z","isPatch":false,"sender":{"key":"thh@inter.net","avatar":"https://avatars.githubusercontent.com/u/365129?v=4"},"body":"George Spelvin wrote:\n\n> git config core.bare true\n[...]\n> - unset the core.bare flag, which disables certain commands that\n>   make no sense on a bare repository, and\n\nShouldn't that be\n| git config core.bare false\nthen?\n\nRegards,\n-thh\n"}]}