I wanted a simple git command to go up to the \"root\" of the repository.
I started with a script, but figured that I cannot change active directory of the shell, I
Simpler still, steal from Is there a way to get the git root directory in one command? , and make an alias (as suggested by Peter) from
cd "$(git rev-parse --show-toplevel)"
This works whether you're in the root directory or not.