Does branching in Mercurial work as nice as Git?

I have read nice things about “branch” in Git recently. It seems like Mercurial’s way may be to clone a local repo? But Mercurial has branch too. Does it work as nice as Git?

What about saving disk space in Mac / Linux / Windows? Do they all do links on Mac and Linux but make a copy on Windows?

  • Mercurial linear history using hg rebase with uncommited changes
  • Merging changes in intermediate branches with DVCS
  • How to search through all Git and Mercurial commits in the repository for a certain string?
  • How are DVCS used in large teams?
  • Does git have an equivalent for the bazaar automv plugin?
  • Is Feature Branching still (or ever) considered a bad practice?
  • git: fatal: Could not read from remote repository when cloning Private Cocoapod
  • Can a Git hook automatically add files to the commit?
  • ZSH prompt not showing git unstaged files
  • How to use git branch with Android Studio
  • How to safely remove files from master which have already been removed from a branch?
  • How to customize the git commit-msg hook?
  • 3 Solutions collect form web for “Does branching in Mercurial work as nice as Git?”

    Mercurial automatically creates branches whenever you commit diverging changesets, whereas Git works with an explicit branch creation model. Depending on your preferences, your development style, and your project needs, either one can be “better”.

    As far as i know – it’s quite close but not as good as in git.

    Jimmy wrote nice articles about using workflow he was used to work with git when working with Mercurial.

    My understanding of Mercurial is that it allows for divergence in a single branch as well as creation of explicit branches. Say Amy and Bob are working on a project. They both pull changeset 1 and work on it, then they both commit their changes and push the changes back to bitbucket. The next time they pull, there will be two incompatible heads (changesets 2 and 3), so the default branch will need to be resolved if they want to keep the changes.

    On the other hand, if Amy sets up a new branch (hg branch bestbranch), then there will still be two heads, but both Amy and Bob can work on independent changesets, resolving them at some future date.

    Git Baby is a git and github fan, let's start git clone.