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