I am starting a new project and would like to have version control from the start. I experimented over the weekend with a new yii2 project created on my live server and pushed to a repository. I initialized git and attempted to add files for the first commit and got this message:
The following paths are ignored by one of your .gitignore files:
Use -f if you really want to add them.
fatal: no files added
Am I missing something about the add command? I assumed that add * would be everything except what is in .gitignore. I did the dreaded “got it working” thing by doing the -f, but I really didn’t want to add the vendor folder. Why can’t git ignore what is in gitignore and add the rest?