I use this alias to quickly cd to the root directory of a repo. Useful if you're way deep in a repo and need to back out.
alias gitroot='cd $(git rev-parse --show-toplevel) && echo "$_"'