Robert Boone <robert@xxxxxxxxxx> writes: > On FreeBSD 5.5 if you use git commit -a you get this error: > > [root@robert /usr/local/test (testing)]# git commit -a > error: pathspec '-a' did not match any file(s) known to git. > Did you forget to 'git add'? > > If I add the file and commit it works as expected. So you had a file '-a', you haven't added it, and "git commit -a" said "I do not know that file --- did you forget to 'git add'?", and you added the file '-a' and then "git commit -a" committed? I do not think that is what you are reporting. Your file was not '-a' but something else, and you did "git add that-file" and tried commit again. What did you exactly say in that second attempt? "git commit" or "git commit -a" or "git commit that-file"? I am smelling a /bin/sh breakage that did not shift '-a' from the $@ list when it was asked to. What shell does FBSD 5.5 ship with? If it is /bin/ash, do you have other shells on the box to try so that we can isolate the problem (say, ksh or pdksh)? - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html