I just initialised a project directory to be a git local repo by doing git init 
But ls -la shows that there is a hidden directory ".idea" which I think I don't need to track with my project.  If that is correct, I tried to add it to my .gitignore buy just appending a ".idea/*" at the end of that file.   
git status still shows the .idea/ listed.
Reading other posts on SO did not help me much since they are trying to stop tracking files which are already being tracked, or on the remote repo.
I am trying to start a fresh and ignore .idea/ from the very beginning and on the local repo before pushing anything to the remote repo.
Thanks
 
     
    