rogerdudler / git-guide

git - the simple guide
http://rogerdudler.github.com/git-guide
2.19k stars 527 forks source link

the diffrence bitween git add . and git add * #168

Open khitermedachraf opened 5 years ago

khitermedachraf commented 5 years ago

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

ralf-ueberfuhr-ars commented 4 years ago

"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"

petski commented 4 months ago

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