From b1784fd3785e8e89e801066f9bb779a0234073d3 Mon Sep 17 00:00:00 2001 From: spacewander Date: Wed, 13 May 2015 22:30:00 +0800 Subject: [PATCH] install the latest release version of git-extras Accoring to the talk in https://github.com/tj/git-extras/issues/371 --- Installation.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Installation.md b/Installation.md index 8ea2026..cc5ce6e 100644 --- a/Installation.md +++ b/Installation.md @@ -14,11 +14,15 @@ $ brew install git-extras ## Clone / Tarball: ```bash -$ make install +$ git clone https://github.com/tj/git-extras.git +$ cd git-extras +# checkout the latest tag +$ git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) +$ [sudo] make install ``` One-liner: ```bash -$ (cd /tmp && git clone --depth 1 https://github.com/tj/git-extras.git && cd git-extras && sudo make install) -``` \ No newline at end of file +$ (cd /tmp && git clone https://github.com/tj/git-extras.git && cd git-extras && git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) && sudo make install) +```