Git repository backwards compatibility

前端 未结 2 1913
离开以前
离开以前 2020-12-06 05:01

I just had a quick question about git - how backwards compatible are git repositories? Eg., I\'ve created a repository using git 1.6.4 and the svn2git ruby script, but I wan

2条回答
  •  猫巷女王i
    2020-12-06 05:49

    It's extremely backward compatible in terms of the actual storage of information, which is all you're worried about in this case. I'm not a total expert, but I doubt that's changed since the first stable release.

    The only compatibility problem I can think come up with is if the two versions of git are working on the exact same repo (not clones) and there are options/aliases set in the .git/config that work in the newer version but were not [fully] implemented in the older version... but even then you'd have to try pretty hard with versions this close. And again, this isn't anything to do with the actual information in the repo, just the commands you use to manage it. That's where the development of git is taking place.

提交回复
热议问题