Quickly go to project root

from blog meain/blog, | ↗ original
Let us say you went deep in to a highly nested project structure and want to get back to the project root. Sure you could go cd ../, nah not here cd ../../, not here either ..... But there is a much better way to do this. You can leverage git to find where the project root is. git rev-parse --show-toplevel 2> /dev/null This gives you the project...