Last active
March 23, 2016 06:01
-
-
Save rkawajiri/204774e328f3392ef974 to your computer and use it in GitHub Desktop.
Homebrewで古いバージョンをインストール ref: http://qiita.com/ryoma_kawajiri/items/b5d63ece2e1638117785
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd /usr/local/Library/Formula/ | |
$ git checkout master carthage.rb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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