I have a bunch of Java files in my current Java project that I keep modifying and I want to add them all in one fell swoop from the root folder of the project (in Ubuntu).
I tried:
git add ./*.java
but that doesn't do it. I tried escaping the asterisk like so:
git add ./\*.java
but that doesn't do it. Then I tried quoting it like so:
git add "./*.java"
but that doesn't do it.
The man page for "git add" gives this as an example:
Adds content from all *.txt files under Documentation directory and its subdirectories:
$ git add Documentation/\*.txt
I tried using a directory such as "Documentation" above to qualify this but that doesn't work either.
What am I missing?
[Update] I tried out @GoZoner's suggestion below and it works, but only if the files are new, and not if they are pre-existing ones that have been updated. This is very odd.