I just tried to create a new phonegap 3.0 project... Note: I\'m new to phonegap. Anyways, I see the project folder contains:
.cordova
I just wanted to leave here my experience with this issue and the approach we finally followed.
In our phonegap project we started to commit all files less the folder /platform using .gitignore file. We thought this way, when the developer cloned the repository the only action remaining to do would be to execute:
phonegap/cordova add platform
But it wasn't. Once the platform was added and we tried to compile, an error appeared and the app didn't install in the device.
Looking the logs, we got some hits that this error was due to plugins. So we decided to reinstall all the plugins we was using in the project and voilá the app run correctly.
So my advice is to save in the repository all the content less the folders platform and plugins. Create and upload to repository a file README with a list of plugins used in the project.
This way, when a developer clone the repository, he/she will have to:
1.- Add the platforms: phonegap/cordova add platform "platform"
2.- Add the plugins: phonegap/cordova plugin add "plugin"
Hope this helps!
Regards.