git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Newbie question
@ 2010-09-19 23:51 kinley
  2010-09-19 23:59 ` Andrew Keller
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: kinley @ 2010-09-19 23:51 UTC (permalink / raw)
  To: git


Hi,
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.
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.

Any help would be appreciated.
Thanks
-- 
View this message in context: http://git.661346.n2.nabble.com/Newbie-question-tp5548737p5548737.html
Sent from the git mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: Newbie question
@ 2010-09-23  4:59 George Spelvin
  2010-09-23  6:29 ` Thomas Hochstein
  0 siblings, 1 reply; 17+ messages in thread
From: George Spelvin @ 2010-09-23  4:59 UTC (permalink / raw)
  To: arjuncode; +Cc: git, linux

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

^ permalink raw reply	[flat|nested] 17+ messages in thread
* newbie question
@ 2009-07-03 18:39 Alex K
  2009-07-03 19:12 ` dloewenherz
  2009-07-03 19:22 ` Junio C Hamano
  0 siblings, 2 replies; 17+ messages in thread
From: Alex K @ 2009-07-03 18:39 UTC (permalink / raw)
  To: git

Hello,

I would think the following simple pattern would be possible:

Create two branches A and B. Switch to A, modify some files, do not
commit to A, switch to B. Now B should not show any of the changes
performed to A? However a git status while on B does show that the
files on A have been modified. Is there something I am missing?

Thank you,

Alex

^ permalink raw reply	[flat|nested] 17+ messages in thread
* newbie question
@ 2006-05-16  7:03 Li Yang-r58472
  2006-05-16  7:09 ` Matthias Kestenholz
  0 siblings, 1 reply; 17+ messages in thread
From: Li Yang-r58472 @ 2006-05-16  7:03 UTC (permalink / raw)
  To: git

I just starting to use git recently.  I have setup a public repository, and pushed cloned open source repository to it.  As most documents suggested, I need to run a repack on the public repository.  Normally git-repack is run in the source directory(the parent directory of .git).  Considering the public repository, there is no source directory and the *.git is the uppest level directory.  Where am I supposed to run the git-repack command?

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2010-09-23 21:10 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-19 23:51 Newbie question kinley
2010-09-19 23:59 ` Andrew Keller
2010-09-20  0:50   ` kinley
2010-09-20  1:47     ` Imran M Yousuf
2010-09-20  6:55     ` Kevin Ballard
2010-09-20 19:32       ` kinley
2010-09-20  8:31 ` Jakub Narebski
2010-09-20  8:39 ` Alex Riesen
  -- strict thread matches above, loose matches on Subject: below --
2010-09-23  4:59 George Spelvin
2010-09-23  6:29 ` Thomas Hochstein
2009-07-03 18:39 newbie question Alex K
2009-07-03 19:12 ` dloewenherz
2009-07-03 19:22 ` Junio C Hamano
2009-07-04  0:29   ` Sitaram Chamarty
2009-07-06 12:11     ` Michael J Gruber
2006-05-16  7:03 Li Yang-r58472
2006-05-16  7:09 ` Matthias Kestenholz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).