Other branches?

Asked by Per Johansson

If I do bzr clone git://github.com/foo/bar.git I assume I get the master branch.
But how do I clone other branches contained in bar.git?

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Git Plugin Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
drewkeller (drew-drewkeller) said :
#1

You don't get any branch per se, you get only the "meta information"... but it's for ALL of the git branches. Then you have to go into wherever you pulled the git stuff and do a checkout for whichever branch you actually want to download.

Everything after the 'git-import' command is bzr terminology (e.g. I believe "checkout" is the closest thing to "clone"... i'm not real familiar with git).

For more of an overview, see http://answers.launchpad.net/bzr-git/+question/157255.

Revision history for this message
Per Johansson (per.j) said :
#2

Hrm, so what you're saying is to use git-import instead of clone for now. I can live with that. Found a related bug report so I guess work is in progress: https://bugs.launchpad.net/bzr/+bug/380871

Revision history for this message
jhonmartin (jhonmartin61) said :
#3

To clone specific branches from the repository, you can use:

bash
Copy code
git clone -b branch_name git://github.com/foo/bar.git
Replace branch_name with the specific branch you want to clone. This way, you can access and work on other branches in the repository. check https://instazara.com/loyan-pons-age/

Can you help with this problem?

Provide an answer of your own, or ask Per Johansson for more information if necessary.

To post a message you must log in.