In linux, I am using git. I initialized git in a project that already I had been working. I am in two or more commits now. Now only I came to found that my project has lot of temp files made by the Text Editor 'gedit
'. That files ends with '~'
For ex.,
index.html~
and so on... Now I need to remove all the temp files from my project directory. So I added the following line in my .gitignore file.
*~
But it still tracks the temp files. What should I do for not to track those temp files in my repository?