Ionic Pro project repos should never include the node-modules/, platforms/, or plugins/ directories. The www/ directory should only be included if the project type is ionic1.
A default .gitignore file is included in new projects. If a project's .gitignore file is absent or has been modified it must be restored.
- Retrieve the approriate .gitignore file
- Copy the file to the root of your project repo
- Run the following commands:
git rm -r --cached . git add . git commit -m 'restoring gitignore' git push ionic master