In other words, is there a git version control tool similar to nvm and rvm for node and ruby (respectively)?
EDIT:
I think the title of my question is somewhat misleading. I really do not want to work with several versions at the same time, as such. It is just annoying to download the source archives and build / install manually. It would be great to simplify this process. Although common package management tools exist, such as brew , yum and apt , they can be slowly updated and they vary between platforms. One simple interface to install / update git will make me happy :)
Let's say I want to stay up to date with the latest version of git or even install it recently in a new window / account without having to complete all the build steps manually. In my beautiful world, it would be as simple as doing something like this:
$ git --version -bash: git: command not found $ curl -sL https://SOMEURL | bash use latest downloading v1.8.0... building v1.8.0... done! using git v1.8.0 $ git --version git version v1.8.0 $ gvm ls v1.8.0 * default -> 1.8 (v1.8.0)
Or, updating as follows:
$ git --version git version 1.7.9.1 $ gvm ls v1.7.9.1 v1.7.8 v1.7.7.5 * default -> 1.7 (v1.7.9.1) $ gvm install latest downloading 1.8.0... building 1.8.0... done! $ gvm alias default 1.8 $ gvm use default now using git v1.8.0 $ git --version git version 1.8.0 $ gvm ls v1.8.0 v1.7.9.1 v1.7.8 v1.7.7.5 * default -> 1.8 (v1.8.0)
source share