diff --git a/pages/common/git-root.md b/pages/common/git-root.md new file mode 100644 index 0000000000000..3bb3577f3e86e --- /dev/null +++ b/pages/common/git-root.md @@ -0,0 +1,13 @@ +# git root + +> Print the root directory of the current Git repository. +> Part of `git-extras`. +> More information: . + +- Print the absolute path of the current Git repository: + +`git root` + +- Print the current working directory relative to the root of the current Git repository: + +`git root --relative`