سؤال

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

Found out the directory I was pushing under was different from the subtle directory name change of the push directory.

نصائح أخرى

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top