Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 928739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:03:37+00:00 2026-05-15T20:03:37+00:00

Using git, I can create branches conceptually , without having to branch my directory

  • 0

Using git, I can create branches conceptually, without having to branch my directory structure. When I switch between branches (assuming that everything has been committed), it will change the contents of the files that I’m working on to reflect whatever the status of the “current” branch is.

I really like being able to do this – it fits very well in my workflow, especially when I’m using say, Visual Studio.

But I am a Bazaar fanboy. I like that it’s written mainly in Python, I like how pretty and simple (to me) the GUI is, and I love that it’s very cross-platform.

So my desire is that it’s possible, and my question is: can Bazaar do/emulate git’s behavior? If so, how?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T20:03:38+00:00Added an answer on May 15, 2026 at 8:03 pm

    I use (heavyweight) checkouts in Bazaar, so I’m not sure that this will be quite the same for you, but you should be able to do this with the switch command. For example:

    mkdir source-repo
    bzr init-repo --no-trees source-repo
    bzr init source-repo/trunk
    bzr co source-repo/trunk workdir
    cd workdir
    # Hack hack hack
    bzr add
    bzr ci -m "Done some stuff"
    # Now create a branch and change the working directory files to match it
    bzr switch -b my-new-branch
    # We're now working on a checkout of ../source-repo/my-new-branch
    # Hack hack hack
    bzr add
    bzr ci -m "Working on the branch"
    # Now go back to the trunk (no -b as we're not creating the branch)
    bzr switch trunk
    # Working directory files now match the trunk branch
    # Hack hack hack
    bzr add
    bzr ci -m "Changes to trunk"
    # Merge in the changes from my-new-branch
    bzr merge ../source-repo/my-new-branch
    bzr ci -m "Merged my-new-branch"
    

    You can, of course, also use the absolute path to the branches, but the relative ones save a lot of typing. Unfortunately, the merge command requires a full path.

    Is this the sort of thing you’re looking for?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can I preview the changes that will be checked-in to TFS without using git
Using Git, how can you find the difference between the current and the last
Using git , if I make git branch --all I can see all remotes
I'm using git gui and I can't see my branch. I know I checked
I'm using git in a project with multiple branches used concurrently, that is: A
I am attempting to create a svn branch using git-svn . The repository was
I know you can track a svn repo with git by using git svn
Given that we are using GIT with more or less the branching workflow of
I am currently using git for a project that has two participants (me and
I need to recover two Git branches that I somehow deleted during a push.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.