LoginSignup
4
3

More than 5 years have passed since last update.

hubコマンド入れる(linux)

Posted at

./script/buildとかしてるとエラー出た。
golang入れる必要あった。 1.4以上とのこと。
ubuntuのリポジトリのものは古かったので、他の人がメンテしているものを使う。
https://launchpad.net/~evarlast/+archive/ubuntu/golang1.5

golang入れる

sudo add-apt-repository ppa:evarlast/golang1.5
sudo apt-get update
sudo apt-get install golang

hubコマンドを入れる

rubygemsにあるhubコマンドは遅いのでこちらのものを利用しましょうとのこと。

path通ってるところ(今回は/usr/local/bin)に配置する

git clone https://github.com/github/hub.git
cd hub
./script/build
sudo cp hub /usr/local/bin/

エイリアス張る

echo 'eval "$(hub alias -s)"' >> ~/.bash_profile

以上。詳しくはこちら(https://github.com/github/hub#commands)

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3