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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:07:18+00:00 2026-06-02T20:07:18+00:00

#lets get the latest git pull #lets switch to branch and do some work

  • 0
#lets get the latest
git pull

#lets switch to branch and do some work
git checkout -b makeSomeBugs

#do the work commit
git add .
git commit -am "introducing some bugs"

#push this for my lazy remote friend to see
git push origin makeSomeBugs

#uh .. changes on master
git pull origin master

#do some work..
git commit -am "introducing some more bugs"
git push origin makeSomeBugs

#lets switch back to master
git checkout master
git pull

#work is done, lets merge
git merge --no-ff makeSomeBugs
git push origin

#and remove the branch to never ever see it again
git push origin :makeSomeBugs
git branch -d makeSomeBugs

Various blog sources (but they are quite old) say that branching like this in mercurial is no-go, especially with permanent branch removal…

  • 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-02T20:07:21+00:00Added an answer on June 2, 2026 at 8:07 pm

    I might have some bits wrong because I may have misunderstood the git, but assuming you’re using a recent version of Mercurial or if not, the bookmarks extension is enabled…

    # lets get the latest
    # git pull
    
    hg pull
    
    # lets switch to branch and do some work
    # git checkout -b makeSomeBugs
    
    hg bookmark makeSomeBugs
    
    # do the work commit
    # git add .
    # git commit -am "introducing some bugs"
    
    hg commit -m "introducing some bugs"
    
    # push this for my lazy remote friend to see
    # git push origin makeSomeBugs
    
    hg push -B makeSomeBugs
    
    # uh .. changes on master
    # git pull origin master
    
    hg pull
    hg merge
    
    # do some work..
    # git commit -am "introducing some more bugs"
    # git push origin makeSomeBugs
    
    hg commit -m "introducing some more bugs"
    hg push -B makeSomeBugs
    
    # lets switch back to master
    # git checkout master
    # git pull
    
    hg pull
    hg update -C <name of master rev>
    
    # work is done, lets merge
    # git merge --no-ff makeSomeBugs
    # git push origin
    
    hg merge makeSomeBugs
    hg push
    
    # and remove the branch to never ever see it again
    # (I assume you mean the label not the changesets)
    # git push origin :makeSomeBugs
    # git branch -d makeSomeBugs
    
    hg bookmark -d makeSomeBugs
    hg push -B makeSomeBugs
    

    There’s a couple of “mental model” differences, but I think it’s pretty close. Biggest one is when you delete the bookmark. You delete it locally and then push that it’s deleted. Reversed order from what you did with git.

    There’s also the question of what you use to identify the “master” head. If there was a bookmark already on the server for it (called master for example) the first line would become hg pull -B master, the first merge hg merge master and the update hg update -C master. Once you’ve pulled a bookmark the first time any subsequent pulls or pushes should update it without needing to explicitly mention it.

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

Sidebar

Related Questions

Lets say I've a string and some font (name, size, etc...). How to get
G'Day Programmers, Lets get straight onto some of the issues I noticed. I was
In general we use biometrics in computer applications say for authentication. Lets get 2
Lets assume I get an HTML table as a string, and I want -
lets say i use jquery.get to retrive a website to string and how am
Lets say I have an object with two boolean properties: public bool AdvancedMode{ get;
I am trying to get the the string this info inside this object lets
I have a blog which i get about 1200 visits a month lets say
I screwed up my last post. Lets see if I can get this one
Lets say I have a feature branch named branches/BigFeature. I want to push those

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.