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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:37:12+00:00 2026-05-11T03:37:12+00:00

I wonder how do the decentralized DVCS’s work? If there is no central server

  • 0

I wonder how do the decentralized DVCS’s work? If there is no central server how can a developer machine knows and syncs the repository with the other developer machines’ repositories. And how does the changes are merged? Because lack of central server seems like to me the system might cause each repository have a different revision numbers. And how does the conflict resolutions are handled?

  • 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. 2026-05-11T03:37:13+00:00Added an answer on May 11, 2026 at 3:37 am

    I’m partial to Git, but I believe the theory applies to most other systems…

    Decentralized VCS is designed to handle branching and merging as part of its DNA by keeping a pointer to the previous commit in every commit, so any change can be traced back to a common ancestor.

    Revision ‘numbers’ as such aren’t used to refer to commits. Obviously, there would be more than one sequence if that were the case… In the case of Git, the pointer ‘key’ which uniquely identifies any commit is an SHA1 hash. The only thing that makes the whole arrangement sequential is the graph of pointers referencing each commit’s parent.

    In practice, a developer commits their work to their own local copy, and when it’s time to share it with others, they do so in three ways:

    • Ask the other developer to pull the changes directly from them
    • Push directly into the other developer’s copy
    • Push the changes to a central location that others can pull from

    These are really the same thing in the end because it just comes down to merging the diffs. In the third scenario the central location merely acts as a proxy–the same thing can be achieved without it.

    The system can be as centralized or decentralized as you choose to make it. Most projects have some amount of centralization for practical reasons, but at any point a fork can become the new central repository, or developers can choose to trade code between themselves ad-hoc.

    When commits are fetched and merged into your own copy, these are applied on top of whatever common ancestor you share with the upstream repository. If there is a conflict, the merge process pauses at the commit step where the conflict occurred, and asks you to resolve it before continuing to apply the remaining commits on top of it. (Standard unified diff markers are used to mark the conflicts.)

    Most merges happen automatically, but when there’s a conflict it’s often quite trivial to resolve. The nice thing is that you don’t end up with a ball of conflicts spanning several commits: it’s much easier to resolve because it pauses in the middle of the history and lets you deal with it in smaller, logical chunks.

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

Sidebar

Ask A Question

Stats

  • Questions 119k
  • Answers 119k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The reason it outputs [[Ljava/lang/Object@.... is simply because the values… May 11, 2026 at 11:51 pm
  • Editorial Team
    Editorial Team added an answer Actually, the way you have it written, your first option… May 11, 2026 at 11:51 pm
  • Editorial Team
    Editorial Team added an answer You might be interested in this question: Performance of ASP.NET… May 11, 2026 at 11:51 pm

Related Questions

I wonder how do the decentralized DVCS's work? If there is no central server
I read what-payment-structure-do-you-use-for-small-projects and I wonder how you guys are dealing with bug vs.
I just learn Ruby, and I wonder how to generate Reports and Invoices (with
Coming from C++, I find generic programming indispensable. I wonder how people approach that
I know following is the way to use unicode in C# string unicodeString =

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.