From 26a08c6d12a08efad924135f8ed53ca6a46e5a54 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Wed, 28 Sep 2011 11:20:15 -0500 Subject: [PATCH] Add upgrade instructions --- doc/README.mdtoc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/doc/README.mdtoc b/doc/README.mdtoc index 304026b3..9fb2e791 100644 --- a/doc/README.mdtoc +++ b/doc/README.mdtoc @@ -116,6 +116,28 @@ when installing a gem that provides a binary). $ rbenv rehash +### Upgrading an existing installation ### + +If you've installed rbenv using the instructions above, you can +upgrade your installation at any time using git. + +To upgrade to the latest development version of rbenv, use `git pull`: + + $ cd ~/.rbenv + $ git pull + +To upgrade to a specific release of rbenv, check out the corresponding +tag: + + $ cd ~/.rbenv + $ git fetch + $ git tag + v0.1.0 + v0.1.1 + v0.1.2 + v0.2.0 + $ git checkout v0.2.0 + ## Usage ## Like `git`, the `rbenv` command delegates to subcommands based on its