Can I update the GIT version without losing my repositories?

Asked

Viewed 320 times

1

My git has version 1.9.5 and the current version is 2.7.0 I can install the new version without losing my data? Because I have a series of repositories with this old version!! What should I do?

2 answers

3


You can update the version of GIT without any problem, because the data of each repository is stored inside the directory of each of them, this data is stored in the hidden directory .git.

  • Thank you for your attention! Can I trust? I’ve downloaded the New Year’s Eve version huh!! Just have to run!! You’ve done this before?

  • 2

    You can trust me, I’ve updated GIT several times and never had a problem.

-1

On my servers (Debian, Centos, Gentoo...) I always update without any problems.

  • 2

    Just so you know, one-line responses will end up in the analysis queue of "Low quality publications" where we can vote to delete (not the case now)... I’m sure you don’t want your name associated with this... the guide [Answer] has more details

  • Thanks for the tip, I really did not know this "rule" about the size of the answers. It is that I usually try to be as objective as possible, maaaaassss... heheheh. Really, thank you very much. ;)

  • It’s... actually, looking at the accepted answer, it explains much better because can update without problem... Looking again, I even voted Leonardo’s comment and his answer. It’s just that I don’t think she adds anything in terms of technique and could be perfectly a comment. Sorry, nothing personal.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.