Skip to content

Instantly share code, notes, and snippets.

@rkawajiri
Last active March 23, 2016 06:01
Show Gist options
  • Save rkawajiri/204774e328f3392ef974 to your computer and use it in GitHub Desktop.
Save rkawajiri/204774e328f3392ef974 to your computer and use it in GitHub Desktop.
Homebrewで古いバージョンをインストール ref: http://qiita.com/ryoma_kawajiri/items/b5d63ece2e1638117785
$ cd /usr/local/Library/Formula/
$ git checkout master carthage.rb
# formulaのディレクトリへ移動
$ cd /usr/local/Library/Formula/
# 一回怒られる
$ brew log carthage
Warning: The git repository is a shallow clone therefore the filtering may be incorrect.
Use `git fetch --unshallow` to get the full repository.
$ git fetch --unshallow
remote: Counting objects: 324024, done.
remote: Compressing objects: 100% (79532/79532), done.
remote: Total 324024 (delta 247862), reused 319162 (delta 243007), pack-reused 0
Receiving objects: 100% (324024/324024), 61.09 MiB | 207.00 KiB/s, done.
Resolving deltas: 100% (247862/247862), completed with 3307 local objects.
From https://github.com/Homebrew/homebrew
470ea39..0e00db6 master -> origin/master
# もう一回。欲しいバージョンのハッシュ値をコピー
$ brew log carthage
$ git checkout c6fa6777 carthage.rb
$ brew unlink carthage
$ brew install carthage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment