Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 278 Bytes

get-path-to-repo-root.md

File metadata and controls

11 lines (6 loc) · 278 Bytes

Get path to repository root

To print the absolute path to the current git repository, use:

git rev-parse --show-toplevel

Found on Stack Overflow