From 431260cc8dda69336ced159c39d10007c9584e58 Mon Sep 17 00:00:00 2001 From: Philip Oakley Date: Fri, 13 Sep 2013 22:23:17 +0100 Subject: [PATCH] doc: command line interface (cli) dot-repository dwimmery The Git cli will accept dot '.' (period) as the relative path to the current repository. Explain this action. Signed-off-by: Philip Oakley Signed-off-by: Junio C Hamano --- Documentation/gitcli.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/gitcli.txt b/Documentation/gitcli.txt index 9ac5088acd..1672842318 100644 --- a/Documentation/gitcli.txt +++ b/Documentation/gitcli.txt @@ -58,6 +58,10 @@ the paths in the index that match the pattern to be checked out to your working tree. After running `git add hello.c; rm hello.c`, you will _not_ see `hello.c` in your working tree with the former, but with the latter you will. ++ +Just as the filesystem '.' (period) refers to the current directory, +using a '.' as a repository name in Git (a dot-repository) is a relative +path for your current repository. Here are the rules regarding the "flags" that you should follow when you are scripting Git: -- 2.11.4.GIT