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
| GOVERSION=$(brew list go | head -n 1 | cut -d '/' -f 6) | |
| export GOROOT=$(brew --prefix)/Cellar/go/$GOVERSION/libexec | |
| export GOPATH=/Users/[user]/go |
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
| brew install hub | |
| ...then in ~/.gitconfig... | |
| [alias] | |
| # public repo | |
| cpr = "!f() { curl https://github.com/cqlengine/cqlengine/pull/${1}.patch | git apply -3 - ; }; f " | |
| # private repo | |
| spr = "!f() { hub apply -3 https://github.com/[your org]/[your project]/pull/${1} ; }; f " |