On Wed, 3 Aug 2011 11:03:52 -0700 (PDT)
Yang Y <teddyyyy...@gmail.com> wrote:

> if I do
> 
> git clone git://git.apache.org/cassandra.git
> 
> it gives me only the trunk branch, but they have many branches
> 
> I have to use the -b arg for clone to get the other branches.
> 
> "clone" clones a "repository", doesn't "repository" mean the
> collection of all branches?

Let's cite the very first paragraph of the git-clone manual page:

"Clones a repository into a newly created directory, creates
remote-tracking branches for each branch in the cloned repository
(visible using git branch -r), and creates and checks out an initial
branch that is forked from the cloned repository’s currently active
branch."

Now it probably worth to fetch some book/howto on Git and read up on
remote tracking branches.  The (freely available on-line) "Pro Git" book
would be OK.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to