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

  • Home
  • SEARCH
  • 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

Ask A Question

Stats

  • Questions 516k
  • Answers 516k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer TestControllerBuilder uses Rhino.Mocks for mocking the HttpContext. Knowing this, you… May 16, 2026 at 6:52 pm
  • Editorial Team
    Editorial Team added an answer If you're fetching the XML in an ajax request you… May 16, 2026 at 6:52 pm
  • Editorial Team
    Editorial Team added an answer From the applet tutorial init Method The init method is… May 16, 2026 at 6:52 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I am attempting to create a svn branch using git-svn . The repository was
Git has a much-touted(?) octopus-merge capability that can merge many heads into one. But
Using Git Bash on Windows, if I create a bash script, where do I
I am using git 1.7.1 on Windows XP with cygwin. The issue can be
I'm considering using GIT or our family photos. The scenario is that both me
I've just started using Git and find that whilst I am implementing a feature
I'm on a team using Git right now, and we have a pretty good
The book 'Git Internal' mentions about using git as peer to peer content distribution
I have been using Git for my version control for a while now, but
After cloning an SVN repository using git-svn with the -s option ( git svn

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.