Skip to content

Instantly share code, notes, and snippets.

@magnetikonline
Last active October 25, 2020 09:54
Show Gist options
  • Save magnetikonline/05fe130b2c86a7e3be497b43ac22f84b to your computer and use it in GitHub Desktop.
Save magnetikonline/05fe130b2c86a7e3be497b43ac22f84b to your computer and use it in GitHub Desktop.
macOS - Install tig CLI Git repository browser tool, without need for Xcode.

Install tig CLI Git repository browser tool

Without the need for Xcode bloat (yay!).

What is tig?: https://github.com/jonas/tig

# install gcc/make/etc.
# note: this will *not* install Xcode - don't be fooled by xcode in CLI command name
$ xcode-select --install

# now download and compile tig source
$ curl -LO -- https://github.com/jonas/tig/archive/tig-2.3.0.tar.gz
$ tar -xf tig-2.3.0.tar.gz
$ cd tig-tig-2.3.0
$ make

# finally install
$ sudo make install prefix=/usr/local

The tig binary will now be available at:

$ which tig
/usr/local/bin/tig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment