Why won't "git add *" add files that "git status" says are unstaged? -
when I type
git add * This works as if there were no files, even when I do
git status it shows those files Those who are unstable, I can manually type them by typing the name, as shown in the picture, but it takes a lot of time in the same cases.
My question is, in this example, I just add "git add *" volatile files, and how should I fix this? Thank you in advance.
This image shows the behavior that I am facing
if You want to add all the files, do not use '*' (which is explained by the shell)
git add git add -u will add updated files. GIT Add-A combines two. See "" besides "": . This indicates that the command is running, instead of the current working tree, the subdirectory. If you want to know if a file is ignored: git check-ignore -v - yourFile .
As explained in "":
git add * will add all the paths that Shell extension's * while git add. will tell git to add the current directory. As a shell extension of git add * will not be * treats these as "hidden" paths. Tells why " * 'fails in this particular scenario: In this special case, Git add * becomes add git bootstrap afile bfile ... index.php main.js ... zfile or something like this, and Trong> git add * closes with a fatal error because you said it: < Ul> "Do not add bootstrap to .gitignore ", and "Add bootstrap to a clear path" It does not know what to follow, so it does not do anything.
Comments
Post a Comment