How to store ionic project in git

How we can manage version control in ionic project? Currently when i are create a new project i can see more foldern and inner folders which are generated by default. So if i need to store the project in git, do i need to store al the files in ionic? Or only needs to store the files under www folder in git? Please help e on this.