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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:51:23+00:00 2026-05-14T04:51:23+00:00

I create a working repository in HG. And I have modified some files. How

  • 0

I create a working repository in HG.
And I have modified some files.

How can i move my all my modification to a branch (a branch that I have not created)?
(kind of ‘git stash’ and the move the stash away change to a branch. Actually, I am not sure how I can do that in git either. If you know, I appreciate if you can tell me in git as well)

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-05-14T04:51:24+00:00Added an answer on May 14, 2026 at 4:51 am

    First check to make sure that neither the ShelveExtension nor AtticExtension do exactly what you want.

    If you’re doing it manually in mercurial I’d avoid a named branch, and just use another head. If for example, you already made the changes you want to “put away” for a little bit.

    hg commit -m 'working on Xxx' # you created a new tip
    hg update -r -2               # switch to the revision before the tip
    

    and now just start working there. You can find that anonymous branch later with hg heads and merge it in with hg merge.

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

Sidebar

Related Questions

In my repository I have a branch called aq which I'm working on. I
I am working on a program that needs to create a multiple temporary folders
I'm working on an application that is supposed to create products (like shipping insurance
i'm working with a multi-threaded program (using pthreads) that currently create a background thread
In a PHP project I'm working on we need to create some DAL extensions
I have a directory under subversion control. I created a branch out of it
Part of the development I have done on a project can not be deployed,
I have several working copies that were checked out of old repositories. The old
Pls. see Creating a Subversion branch . I created a repository with a URL
This seems to happen to me all the time lately. I have a repository

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.