Search code examples
gitmacoscompatibilitylinux-mint

Git 1.9.1 and 2.5.4 compatibility when working on the same repository


I have a repository that is stored on Dropbox which is shared between all my machines. On OSX I have Git 2.5.4 installed (courtesy of some bloke at apple) and on Mint I have 1.9.1 installed. I'm just worried that some of the meta-data that gets stored in the .git file might be different across the versions and that I'm going to run into problems?

This question seems to point towards it being fine - however this was just Git clients, not versions?

Is my setup going to be fine? Or is there a better way to manage my files?


Solution

  • Since every git clone is its it own repo you will not have any problems working with multiple clients on the same repo.

    In your case

    I have a repository that is stored on Dropbox which is shared between all my machines

    I assume you have a single folder shared between different end devices in which each device has a different git version. It might be a problem since each new version might have some bug fixed which handle files differently, there are new features which change the way git store information in the internal folder

    For example: git bisect was updated and since version 2.7 the internal storage if the bisect data was updated.

    Git 2.5 introduced working tree on the main stream as part of the official version and not under the contrib folder.

    So you should accept differences between the versions and its better to upgrade your git clients to be the same over all your devices.