1

I am new to using git, and so apologize I'm missing something that should be obvious from the git book.

I would like to view the source code of a project after a git clone, but all git-clone does is download a .pack files in ./objects/pack. How do you extract a .pack into the source code files?

What is the output path of git unpack-objects?

T. Webster
  • 9,605
  • 6
  • 67
  • 94

2 Answers2

1

Unless your upstream repo (the one you are cloning) is empty, you should see the content of its default branch (usually master, unless its symbolic-ref has set to point to am empty branch) in your working tree:

 git clone url/repoA
 cd repoA
 git branch # to see in which branch you are

Only git clone --bare would generate an empty working tree (since it would only create a git directory repoA.git, and no working tree at all).

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
0

you might also try this to start a new 'develop' branch off the master:

git checkout develop
user3076252
  • 1,919
  • 13
  • 13