Skip to content

Instantly share code, notes, and snippets.

@bezhermoso
Last active January 8, 2022 17:04
Show Gist options
  • Save bezhermoso/479ba560968b61e31cb588fc07033f58 to your computer and use it in GitHub Desktop.
Save bezhermoso/479ba560968b61e31cb588fc07033f58 to your computer and use it in GitHub Desktop.
# Mnemonic: `gr` == `git root`
# IMPORTANT: Use single-quotes. Otherwise, the sub-command will expand *now* at definition!
alias gr='cd $(git rev-parse --show-toplevel)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment