#Linux
$ touch .gitignore
#Windows
cd c:<your path>
notepad .gitignore
#Accept the prompt to create the file, edit the contents accordingly, save and close.
--cached
Use this option to unstage and remove paths only from the index.
Working tree files, whether modified or not, will be left alone.