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 370355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:00:35+00:00 2026-05-12T14:00:35+00:00

What is a really simple how to to do branching and merging using TortoiseSVN?

  • 0

What is a really simple “how to” to do branching and merging using TortoiseSVN?

  • 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-12T14:00:35+00:00Added an answer on May 12, 2026 at 2:00 pm

    Assuming your work directory is working from the trunk:

    Right-click on the “root work folder” (this term always refers to Windows Explorer) and do svn update to update your work folder to the latest trunk.

    Make sure what you have is stable.

    Right-click on the root work folder and do svn commit to make sure any local changes are committed to the trunk.

    Right-click on the root work folder and do svn repo-browser.

    If you don’t already have a branches folder in the repository: right-click on the folder just above the trunk folder and do “create folder” and create a branches folder (for example, if your trunk is http://myserver/svn/MyRepository/MyProj/Trunk, create http://myserver/svn/MyRepository/MyProj/Branches).

    Right-click on the trunk folder and do Copy To: and put in the new folder name for your branch. For example: http://myserver/svn/MyRepository/MyProj/Branches/MyNewBranch. (Don’t worry that this will waste a lot of space… this is called a “cheap copy” … it doesn’t actually copy the contents of files unless they change).

    Close Repo-browser.

    Right click your work folder root, and do: svn switch and choose the folder name of your new branch (for example, http://myserver/svn/MyRepository/MyProj/Branches/MyNewBranch). Leave everything else at the default.

    Now work on your branch. When you get to milestones, right-click on the root work folder and do svn commit to commit to your branch. (This will not be seen in the trunk).

    If others are working on the same branch, periodically do svn update from the root work folder. This will update from the branch. (It will NOT get any updates from the trunk.)

    Whether or not others are working on the same branch, you should periodically merge changes from the trunk to make sure your branch won’t be too hard to integrate later. To do the periodic merge: right-click on the work folder root and do svn merge. Select “Merge a Range of Revisions”. Under “URL to merge from”, choose the trunk (for example, http://myserver/svn/MyRepository/MyProj/Trunk). Leave Revision Range blank and leave everything else alone. Click Next. Leave everything alone and click Merge. Make sure everything still works… fix it if not. Once you are satisfied, do a regular svn update from the work root folder to update from the branch (this is necessary even if you are the only one working on the branch, to satisfy SVN). Then do svn commit to commit the merged trunk changes to the branch. You can repeat this step periodically as many times as you want.

    Once your branch is ready to integrate, do the above step one last time and do your final testing. Do a final commit to the branch.

    Right click on your root work folder and do another svn switch, this time switching to the trunk (for example, http://myserver/svn/MyRepository/MyProj/Trunk). This will have the effect of essentially “undoing” all the work you’ve done on your branch, but don’t worry… you will get your work back. (It will also report a lot of updates to files you didn’t change in your branch, but these are just “SVN property” changes… don’t worry about them.)

    Right click on your work folder and do svn merge. This time, choose “Reintegrate a Branch”. For the URL, put in your branch (for example, http://myserver/svn/MyRepository/MyProj/Branches/MyNewBranch). Leave the rest alone and click Next. Leave everything alone and click Merge. You now have all the work you’ve done on your branch, as well as up-to-date work from the trunk.

    Do a final test. Everything should work because this should be the same set of files you had in your last test in the branch. Right-click on your root work folder and do an svn commit. Commit everything, even files that you didn’t work on in your branch (they just have “SVN property” changes but committing them helps SVN keep track of all the revisions).

    The trunk now has all your branch work as well as all the work that was done in the trunk while you were working on your branch, and it all works. In addition, SVN has the complete history of all the files, even the revisions that were checked in while you were working on your branch.

    Optional: go into Repo-browser, right-click on your branch folder (for example, http://myserver/svn/MyRepository/MyProj/Branches/MyNewBranch) and do “delete”. This will have no effect on the trunk, and you don’t need the branch any more. (Even if you are really paranoid, don’t worry, because you can even get your deleted branch back from Repo browser at any time if you really need to.)

    Please feel free to comment!

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

Sidebar

Related Questions

I've got a really simple login script using PHP's sessions to limit access, but
Really simple question - how do I do a search to find all records
This is probably a really simple jQuery question, but I couldn't answer it after
Probably a really simple one this - I'm starting out with C# and need
I've got a really simple rails question here but I can't seem to find
So this might be really simple, but I haven't been able to find any
I have a really simple search form with the following Label (Search) Textbox (fixed
I have a really simple ASP.NET web application and a web setup project that
I have a really simple WPF UserControl: <UserControl x:Class=dr.SitecoreCompare.WPF.ConnectionEntry xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml x:Name=connEntry BorderBrush=Navy BorderThickness=1
I have a really simple Java class that effectively decorates a Map with input

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.