git-guide icon indicating copy to clipboard operation
git-guide copied to clipboard

the diffrence bitween git add . and git add *

Open khitermedachraf opened this issue 5 years ago • 2 comments

so (git add *) does not exist (git add .) =(git add -A) it means : stage all ( new , modified , deleted ) files

khitermedachraf avatar May 05 '19 13:05 khitermedachraf

"git add ." only stages new and modified files, while "git add -A" stages deletions too. So I would replace it by always using "git add -A"

ralf-ueberfuhr-ars avatar Jun 25 '20 13:06 ralf-ueberfuhr-ars

In most shells, git add * doesn't take "dot-files" into account, i.e. a .gitignore-file.

See https://unix.stackexchange.com/questions/1168/how-to-glob-every-hidden-file-except-current-and-parent-directory

petski avatar Jun 18 '24 12:06 petski