Found out the directory I was pushing under was different from the subtle directory name change of the push directory.
Error with adding all files with git
-
08-07-2023 - |
سؤال
I have tried to use git add -A to add all of my files to commit in the past, but now, it does not work anymore.
When I perform the command, the console prints out:
fatal: pathspec '.' did not match any files on branch master
Any input on why this could be happening? Could this be a file permissions issue?
Some extra information: this is being built on Travis-CI.
المحلول 2
نصائح أخرى
First of, don't use git add -A
without a pathspec. From the git help add
page:
If no <pathspec> is given, the current version of Git defaults to "."; in other words, update
all files in the current directory and its subdirectories. This default will change in a future
version of Git, hence the form without <pathspec> should not be used.
So I advise you to change the command to git add -A .
at the very least.
Lastly, about the specific problem, I can only suggest to check the value of $PWD to see where your build system's current directory is and try checking for ignored files and removed files.
لا تنتمي إلى StackOverflow