[fpc-other] Git & SVN

Mark Morgan Lloyd markMLl.fpc-other at telemetry.co.uk
Wed May 24 16:51:50 CEST 2017


On 24/05/17 13:30, Graeme Geldenhuys wrote:
> On 2017-05-24 12:46, Mark Morgan Lloyd wrote:>  >

> could usefully be described as v1.4.1-787, and you can use that in>
> conversation without having to be online to a repository.
> Yes, you can use "v1.4.1-787" to describe a specific point in history,
> but the far more common and useful one is the "45f932c1" SHA1 reference,
> because the latter can be used directly in all Git commands.
>
>> If multiple people were committing directly to the same repository (I>
>> presume Git supports that)
> Yes.
>>  presumably they'd see a consistent sequence> of version identifiers,
>> i.e. very much like Subversion.
> Yes. A SHA1 reference like "45f932c1" only only points to a specific
> commit, it also describes the history that lead to that point.

>> What happens in the case where there's multiple repositories?
> No difference. A git repo contains the full history. If you clone that
> repository 100 times between developers, you effectively have a 100
> backups. If the original repo had 5 branches, all 100 clones with have
> references (and full history) to those 5 branches too. Such remote
> branch can be listed using the following command:
>   git branch -r

Thanks very much for that, very interesting.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]


More information about the fpc-other mailing list