Most other answers are 2/3 years old.
2019 Update:
# remove extension less files * ! !*.* # intermediate files node_modules/ build/ obj/ Debug/ bin/ package-lock.json .vs .gradle .idea *.exe # res **/resources/signing # project specific **/dist/ **/all.min.js # ========== Cordova - platforms # android # platforms/android/app/src/main/assets # platforms/android/app/src/main/AndroidManifest.xml # platforms/android/app/src/main/res/drawable-* # platforms/android/app/src/main/res/mipmap-* # platforms/android/app/src/main/res/xml/config.xml # browser # platforms/browser/app/src/main/assets # platforms/browser/config.xml # platforms/browser/www # # ========== Cordova - plugins - remove all except json & xml # plugins.DS_Store # plugins*.cs # plugins*.h # plugins*.java # plugins*.js # plugins*.m # plugins*.map # plugins*.md # plugins*.modulemap # plugins*.ts # pluginsLICENSE # pluginsNOTICE # plugins*.gradle # pluginstests/
As you can see, I commented on most of the lines (all lines begin with C #). This is due to the fact that I had problems with changing the plugin version, and I decided to find out what happens with the plugin updates. In fact, all platform and plugin files are included in the commit, now my life is calm.
2019:
I stated with that .
After the development and publication of the application, it became lower:
(If you deviate from the bottom, comment below, we can learn from each other)
# remove extension less files * ! !*.* # intermediate files node_modules/ build/ obj/ Debug/ bin/ package-lock.json .vs .gradle .idea *.exe # Cordova - platforms platforms # Cordova - plugins - remove all except json & xml plugins.DS_Store plugins*.cs plugins*.h plugins*.java plugins*.js plugins*.m plugins*.map plugins*.md plugins*.modulemap plugins*.ts pluginsLICENSE pluginsNOTICE plugins*.gradle pluginstests/ # res **/resources/signing # project specific **/dist/ **/all.min.js
Manohar Reddy Poreddy Mar 03 '19 at 21:42 2019-03-03 21:42
source share