spraff
spraff

Reputation: 33445

github newbie: clone doesn't seem to have gotten me the right files

I just tried to use git for the first time and got unexpected results.

I ran git clone https://github.com/dato/lesswrong-bundle.git which downloaded the following files to a directory called lesswrong-bundle

What I expected was this list of files which is rather different. This page lists https://github.com/dato/lesswrong-bundle.git by the "Git Read-Only" button, which is the obvious argument to the git command.

There is a link to a zip file which contains the files I wanted, but what went wrong the first time?

Upvotes: 2

Views: 67

Answers (2)

Tanglim Lua
Tanglim Lua

Reputation: 68

You just clone gh-pages branch

Here is the right command:

   git clone -b master https://github.com/dato/lesswrong-bundle.git

You can read more here.

Upvotes: 3

gpicchiarelli
gpicchiarelli

Reputation: 452

I tried your command and I've your same issue. Then I switched to master tree with

git checkout master

And I've found your right files. As you can see, the files you've found before belong to the "gh-pages" branch. You have 2 branches in this repo 1) master (the one you needed) 2) gh-pages.

Upvotes: 2

Related Questions