Skip to content

Instantly share code, notes, and snippets.

@tphdev
Last active May 14, 2018 17:21
Show Gist options
  • Save tphdev/a372c57b27624d2cd024f341465f3e4a to your computer and use it in GitHub Desktop.
Save tphdev/a372c57b27624d2cd024f341465f3e4a to your computer and use it in GitHub Desktop.
Linux 'hub' installation instructions
#!/bin/bash
# (i) clone the repo
mkdir -p ~/tmpdir && cd ~/_tmpdir
git clone https://github.com/github/hub.git && cd hub
# (iii) build the hub script w/ go
script/build -o ~/bin/hub
# (iii) into /usr/local/bin
sudo mv ~/bin/hub /usr/local/bin
cd ~
rm -rf ~/tmpdir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment