Skip to content

Commit 431260c

Browse files
Philip Oakleygitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b3e7d24 commit 431260c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Documentation/gitcli.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ the paths in the index that match the pattern to be checked out to your
5858
working tree. After running `git add hello.c; rm hello.c`, you will _not_
5959
see `hello.c` in your working tree with the former, but with the latter
6060
you will.
61+
+
62+
Just as the filesystem '.' (period) refers to the current directory,
63+
using a '.' as a repository name in Git (a dot-repository) is a relative
64+
path for your current repository.
6165

6266
Here are the rules regarding the "flags" that you should follow when you are
6367
scripting Git:

0 commit comments

Comments
 (0)