gitignore .idea and rm from github code example Example: gitignore .idea and rm from github git rm --cached -r .idea