# Open git bash in the directory you wanna create .gitignore # run command: $ touch .gitignore # there you go