Ignoring Gitignore
I'm building a web app called FauxChat [fauxchat.com]. In this moment, it is hosted in Blogger. Blogger has a little different format of that what I'm coding, so all HTML, CSS and JavaScript codes which are in different files, before make available to the public, need to convert them all to only one XML file (I can write about this topic a further day ahead). This XML file isn't an important part of this project and I don't want to show it on Github. Now you have the context.
I could solve this with a single line in a gitignore file. And I did it. However, now I had a record that this file exist and this record will be published on Github.
My solution, at the moment, was ignore the own gitignore file. Sorry if the article's title spoilered you the plot.
Step-by-step:
1st, I created the ".gitignore" file with a line "index.xml", the one I wanted to hide.
2nd, In ".git/info/exclude" added a line with ".gitignore".
I could be put this XML file into another folder, but it won't practic because I won't saw the file when I open the project files folder on Visual Studio Code (probably there is a solution to this, but I also ignore).