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

Re: Newbie question

From
Jakub Narebski <jnareb@gmail.com>
Date
Sep 20, 2010, 08:31 UTC
Message-ID
<m31v8pl11m.fsf@localhost.localdomain>
In-Reply-To
<1284940287810-5548737.post@n2.nabble.com>
kinley <arjuncode@gmail.com> writes:
> I am new to question. Please help me with this.
> I copied an already existing project from a remote server using scp to my
> local directory.
In the future use "git clone <scp-location>" instead of 'scp'.
Show 16 quoted lines
> The contents of this directory are
>    branches
>    config
>    description
>    HEAD
>    hooks
>    info
>    objects
>    ref
> 
> I checked all the directories and sub-directories but could not find a
> single source code file (in C language).
> All I can see at the leaf level appear to be MD5 hash code.
> 
> Is there any command to retrieve the source files ? 
> As per manual, only then I guess I can add them to git.

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.

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: kinleyNext: Alex Riesen
Message 7 of 8 in “Newbie question”
  1. kinleySep 19, 2010
  2. Andrew KellerSep 19, 2010
  3. kinleySep 20, 2010
  4. Imran M YousufSep 20, 2010
  5. Kevin BallardSep 20, 2010
  6. kinleySep 20, 2010
  7. Jakub NarebskiSep 20, 2010
  8. Alex RiesenSep 20, 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.