I am adding source control to a project that had none. The problem is that there are a lot of files to initially add to git with a .gitignore file, but I can't figure out how to add all files without including the files matching something in the .gitignore file.
git add *
The above command will not add any files because it detects files which are ignored by the .gitignore.
git add -f *
The above command will add all files including the files I wish to ignore.
So, how do I add all files while still adhering to the .gitignore file?