How to create .gitignore file
Just add the preferred command line to interface this GNU,Bash, etc.
Touch works on Windows as well as long as you produce the full path. This may does not work for some users on Windows to the touch command not be in the $PATH on some Win versions per default.
C:\> "c:\program files (x86)\git\bin\touch.exe" .gitignore