Search code examples
ionic-frameworkionic3hybrid-mobile-apphybridmulti-device-hybrid-apps

Cannot push IonicApp/www to GitHub


I pushed my newly initialized Ionic Apps to GitHub using the common practice:

git add .
git commit -m ""
git push origin master

But after this I went to check my Ionic project, everything was there except www folder. Can anyone tell me what went wrong?


Solution

  • There is a file named .gitignore, which limits the content for git

    # Specifies intentionally untracked files to ignore when using Git
    # http://git-scm.com/docs/gitignore
    
    *~
    *.sw[mnpcod]
    *.log
    *.tmp
    *.tmp.*
    log.txt
    *.sublime-project
    *.sublime-workspace
    .vscode/
    npm-debug.log*
    
    .idea/
    .ionic/
    .sourcemaps/
    .sass-cache/
    .tmp/
    .versions/
    coverage/
    dist/
    node_modules/
    tmp/
    temp/
    platforms/
    plugins/
    plugins/android.json
    plugins/ios.json
    www/
    $RECYCLE.BIN/
    
    .DS_Store
    Thumbs.db
    UserInterfaceState.xcuserstate
    

    you could edit the file(delete www/).