Skip to content

Instantly share code, notes, and snippets.

@drewfradette
Created October 23, 2014 19:19
Show Gist options
  • Save drewfradette/48bea25162fc9b5ed8cf to your computer and use it in GitHub Desktop.
Save drewfradette/48bea25162fc9b5ed8cf to your computer and use it in GitHub Desktop.
git-root
#!/bin/bash
set -e
git rev-parse --show-toplevel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment