From 7ba843c5851319cb45f95b2e345c525c69170b7e Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Wed, 28 Sep 2011 11:20:36 -0500 Subject: [PATCH] Add upgrade instructions --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index 69466b18..c0fe53f7 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ tools that do one thing well. * [1 How It Works](#section_1) * [2 Installation](#section_2) + * [2.1 Upgrading an existing installation](#section_2.1) * [3 Usage](#section_3) * [3.1 rbenv global](#section_3.1) * [3.2 rbenv local](#section_3.2) @@ -130,6 +131,28 @@ when installing a gem that provides a binary). $ rbenv rehash +### 2.1 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 + ## 3 Usage Like `git`, the `rbenv` command delegates to subcommands based on its