首页 \ 问答 \ 分布式版本控制系统的分散行为如何工作?(How do the decentralized behaviour of Distributed Revision Control Systems Work?)

分布式版本控制系统的分散行为如何工作?(How do the decentralized behaviour of Distributed Revision Control Systems Work?)

我想知道分散的DVCS是如何工作的? 如果没有中央服务器,开发人员机器如何知道并将存储库与其他开发人员机器的存储库同步。 这些变化是如何合并的? 由于缺乏中央服务器似乎对我来说系统可能会导致每个存储库都有不同的版本号。 如何处理冲突解决方案?


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?


原文:https://stackoverflow.com/questions/514442
更新时间:2022-05-24 16:05

最满意答案

\是逃脱char。 你的解决方案如下

function slideSHOW(x){
    var imagine=document.getElementById('imag');
    numar_imagine +=x;
    if(numar_imagine>maxim){
        numar_imagine=1;
    }
    if(numar_imagine<0){
        numar_imagine=maxim;
    }
   imagine.src="Imagini\\CEJ2016\\img" + numar_imagine + ".jpg";
}

\ is escape char. your solution is below

function slideSHOW(x){
    var imagine=document.getElementById('imag');
    numar_imagine +=x;
    if(numar_imagine>maxim){
        numar_imagine=1;
    }
    if(numar_imagine<0){
        numar_imagine=maxim;
    }
   imagine.src="Imagini\\CEJ2016\\img" + numar_imagine + ".jpg";
}

相关问答

更多
  • 为什么循环存在于此处,您将所有图像都投射出来。 用start增量变量