Skip to content

Commit

Permalink
doc: command line interface (cli) dot-repository dwimmery
Browse files Browse the repository at this point in the history
The Git cli will accept dot '.' (period) as the relative path
to the current repository. Explain this action.

Signed-off-by: Philip Oakley <philipoakley@iee.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Philip Oakley authored and Junio C Hamano committed Sep 13, 2013
1 parent b3e7d24 commit 431260c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Documentation/gitcli.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 431260c

Please sign in to comment.