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