Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
khitermedachraf opened this issue May 5, 2019 · 2 comments
Open

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

khitermedachraf opened this issue May 5, 2019 · 2 comments

Comments

@khitermedachraf
Copy link

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

@ralf-ueberfuhr-ars
Copy link

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

petski commented Jun 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants