git to ignore files

1
git rm --cached . -r

create .gitignore file under root directory. then run git rm .