Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
clone only pulls down master branch
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
LinPan  
View profile  
 More options Aug 22 2008, 8:51 pm
From: LinPan <ell...@onehouse.net>
Date: Fri, 22 Aug 2008 17:51:23 -0700 (PDT)
Local: Fri, Aug 22 2008 8:51 pm
Subject: clone only pulls down master branch
I created a stable branch of my code in my local git repository.  Then
I pushed it up to the GitHub server.  So, I can see it in my local
repository and on the remote server, however, when I do a new clone of
my repository and execute the "git branch" command, only the mast
branch shows up.  What have I done wrong?

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
LinPan  
View profile  
 More options Aug 22 2008, 8:52 pm
From: LinPan <ell...@onehouse.net>
Date: Fri, 22 Aug 2008 17:52:51 -0700 (PDT)
Local: Fri, Aug 22 2008 8:52 pm
Subject: Re: clone only pulls down master branch
And by "mast branch", I mean "master branch"... typo.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
LinPan  
View profile  
(1 user)  More options Aug 22 2008, 9:12 pm
From: LinPan <ell...@onehouse.net>
Date: Fri, 22 Aug 2008 18:12:53 -0700 (PDT)
Local: Fri, Aug 22 2008 9:12 pm
Subject: Re: clone only pulls down master branch
Ahhh, I got it.  I found a tech note that talks about how to checkout
another branch from a remote repository.  Here it is, in case this is
helpful to anyone else:

$ git clone http://www.example.com/~username/git/repo-name
$ cd repo-name
$ git fetch
$ git checkout --track -b mybranch origin/remote-branch-name


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tekkub  
View profile  
 More options Aug 22 2008, 9:20 pm
From: Tekkub <tek...@gmail.com>
Date: Fri, 22 Aug 2008 19:20:17 -0600
Local: Fri, Aug 22 2008 9:20 pm
Subject: Re: clone only pulls down master branch

Ah, the classic case of finding your answer just after you give up and send
off an email.

git-clone should pull down all the remote branches, you shouldn't need that
fetch call.  After it pulls those down, however, it creates only a local
branch named "master"... so you have to create any other local branches you
want.

--tek


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google