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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:10:29+00:00 2026-06-03T14:10:29+00:00

My default branch is very old and was not changed in the last weeks

  • 0

My default branch is very old and was not changed in the last weeks – people work on another, second branch. This means that there are big differences today. A lot of new files, a lot of files deleted, a lot of files changed. I’m trying to find out the easiest way to “replace” the default branch by that second branch. Do I really have to merge every single change? thank you

  • 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-06-03T14:10:30+00:00Added an answer on June 3, 2026 at 2:10 pm

    I think you’re describing a situation where you have two very divergent branches: the abandoned or forgotten ‘default’ branch, and the active ‘default2’ branch. Merging these together could be difficult.

    1. If you don’t want any of the changes from ‘default’, you could use hg backout to create anti-changesets for all changesets back to the common ancestor of ‘default’ and ‘default2’. Then, because ‘default’ will look just like an ancestor of ‘default2’, you should be able to merge the two together with no issues. Your developers would then begin to use ‘default’ as their primary development branch.
    2. You could simply close the ‘default’ branch and rename ‘default2’ to ‘default’ as per this SO thread.
    3. Of course, if you have a small development team and complete server control, you could strip ‘default’ from your repo and rename ‘default2’ to ‘default’ using Mercurial Queues.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I have several commits made to the default branch since the last push,
When I am creating a repository in Git it says This repository's default branch
The default in Ruby on Rails is to have this set to false (in
By default it will not print out anything until the whole page has finished
By default, Apache 2.0.52 will respond to any HTTP TRACE request that it receives.
I searched a lot in stackoverflow, people saying the way to checkout remote branch,
When using hg branch FeatureBranchName and publishing it to a central repo that is
It seems naming a previously unnamed branch doesn't really work out. It creates a
We have two named branches in Mercurial: default - a bugfixing branch where we
Take a simple example: I'm working on the default branch, have some changesets committed

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.