From ed0428f208eba560d1f72e60c752f692c42b8884 Mon Sep 17 00:00:00 2001 From: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> Date: Fri, 21 May 2021 18:32:02 +0100 Subject: [PATCH] git-root: add page (#6009) --- pages/common/git-root.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pages/common/git-root.md diff --git a/pages/common/git-root.md b/pages/common/git-root.md new file mode 100644 index 0000000000..3bb3577f3e --- /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`