When I do $ git add *
sometimes I realized that git doesn't add the deleted files to the stage and I need to indicate manually if remove or add it, but I can't figure out what's the difference with $ git add --all
.
So if the asterisk () indicates 'everything' (), why git doesn't add all like **--all flag'?
I checked the git documentation git-add and some Difference between “git add -A” and “git add .” but doesn't specify the case when using asterisk.
Also the first answer in git add * (asterisk) vs git add . (period) indicates:
add * means add all files in the current directory, except for files, whose name begin with a dot. This is your shell functionality, actually, Git only receives a list of files.
So it means that is identically * and --all?
Thanks