Skip to content

Instantly share code, notes, and snippets.

@rafaelune
Last active October 7, 2015 04:58
Show Gist options
  • Save rafaelune/3109819 to your computer and use it in GitHub Desktop.
Save rafaelune/3109819 to your computer and use it in GitHub Desktop.
Creating .gitignore file through command line on Windows
#1 option
@echo off
(
echo *.log
echo local_settings.config
echo dir_name
) > .gitignore
#2 option
copy con .gitignore
*.log
local_settings.config
dir_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment