as said earlier.... '.' means the directory itself

many git commands are recursive when you use a path as argument.... so

git add path/to/file.dat

adds the 'file.dat' file, but

git add path/to/dir/

add recursively all files in 'dir' directory

SO

git add .

add all files in current directory, if that directory is the root directory
(where .git folder is), basically means: "add all files modified and
untracked"


have fun!

-Joe Cabezas


2013/5/16 John McKown <john.archie.mck...@gmail.com>

> In UNIX commands, the period by itself means "the current directory"
> On May 16, 2013 5:41 PM, "Philip Oakley" <philipoak...@iee.org> wrote:
>
>> Recently there have been a couple of example commands that have a single
>> dot '.' in the command line.
>>
>> In this case what is its proper meaning, that is, is it expanded by the
>> bash shell, or by git it self, and what would its typical expanded version
>> look like if it is the current dicetory e.g. fully qualified etc. ?
>>
>> (I ask as someone more familiar with Windows, so some of the linux stuff
>> can still be a mystery ;-)
>>
>> examples on git@vger:
>> Re: Pitfalls in auto-fast-forwarding heads that are not checked out?
>>
>> On Sat, May 4, 2013 at 2:51 PM, Jonathan Nieder <jrnie...@gmail.com>
>> wrote:
>>
>>> Another trick is to use "git push":
>>>         git push . $production_sha1:refs/heads/**master
>>>
>>
>>
>> and
>>
>> 'git fetch .'
>> in [PATCH 1/3] fetch: add --allow-local option,
>> 16 May 2013
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Git for human beings" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to 
>> git-users+unsubscribe@**googlegroups.com<git-users%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit 
>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>> .
>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to