Skip to main content

Git command to retrieve the root directory of a git repository.

git rev-parse --show-toplevel