What's the best practise for managing a phonegap project in git?
Currently I have the www folder as a git repository, but the iPhone version of phonegap adds a phonegap.js into that folder and I don't want to commit that because it is iPhone specific (I want to share the repo between the different platforms). I'm also worried that I am probably putting the .git folder onto the phone (which is a complete waste of space).
Also, should I be minifying all my code before bundling it into the app (e.g. with uglify.js). How can I keep the unminified code in git, and have XCode's build and run command (for the iPhone version) minifiy it before copying it to the phone?
What about Eclipse/Android?
Edit This question is highly outdated now, based on older versions of phonegap. Cordova cli and corodva 3 have changed the landscape completely (for the better). See this question.