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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:36:02+00:00 2026-05-19T03:36:02+00:00

On hginit.com, a typical hg workflow is described as: 1.If you haven’t done so

  • 0

On hginit.com, a typical hg workflow is described as:

1.If you haven’t done so in a while, get the latest version that everyone
else is working off of:
hg pull
hg up
2.Make some changes
3.Commit them (locally)
4.Repeat steps 2-3 until you’ve got some nice code that you’re willing to
inflict on everyone else
5.When you’re ready to share:
hg pull to get everyone else’s changes (if
there are any)
hg merge to merge them
into yours
test! to make sure the
merge didn’t screw anything up
hg
commit (the merge) hg push

I use hg pretty regularly, and this all makes sense to me. I’ve just started using git, and I haven’t found anything that describes a typical workflow like the above quote. I was hoping someone could explain the difference in workflow between these two tools and describe a typical workflow in git.

  • 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-19T03:36:02+00:00Added an answer on May 19, 2026 at 3:36 am

    It’s about the same:

    1. git pull # Get latest code
    2. Make some changes
    3. git add foo/*.rb # Add files to commit
    4. git commit -m "Made it more betta" # Make and describe the commit
    5. git push # Push the changes to some master repo
      • The push will fail if you’re behind the master, in which case you must:
        1. git pull # Automatically merge what it can, and show conflicts
        2. Manually fix any conflicts
        3. git add . # Add whatever was conflicting
        4. git commit -m "Merging with master"
        5. git push

    As with Mercurial you can repeat steps 2-4 as much as you like; you don’t have to push after every commit.

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

Sidebar

Related Questions

I've been following the hginit.com tutorial on how to use mercurial. Everything is going
I've been going through the tutorial at hginit.com, but I've found a rather inconvenient
On Windows 7, from reading hginit.com, it seems like it is very easy to
Recently I started working on a portable version of a project by copying all
It seems that it is suggested we can commit often to keep track of
I'm looking for a diagramming software that would produce good looking output. It doesn't
I'm really quite frustrated at this point. I have an existing hg repository that
The short question is: if I hg rollback , how does Peter get my
When creating COM interface declarations in C# are there any rules you have to
I'm working on an Android game with the folder structure: \bin \data (contains game

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.