Skip to content

Instantly share code, notes, and snippets.

@dshipp
Last active December 29, 2015 10:49
Show Gist options
  • Save dshipp/7659897 to your computer and use it in GitHub Desktop.
Save dshipp/7659897 to your computer and use it in GitHub Desktop.
Substitute to top level directory for the current git repository. Useful when you have aliases and scripts which need to work across all repositories and refer to some file relative to that repository
$(git rev-parse --show-toplevel)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment