Skip to content

Instantly share code, notes, and snippets.

@koji
Created October 27, 2017 10:57
Show Gist options
  • Save koji/763313333ffd1b3f20bfac5ea7fd3937 to your computer and use it in GitHub Desktop.
Save koji/763313333ffd1b3f20bfac5ea7fd3937 to your computer and use it in GitHub Desktop.
Alias for creating .ignore file when hit git init
$ vim .bashrc/.zshrc
alias ignore='echo -e "node_modules/ \n*.mp4 \n*.mp3 \n*.mov \n*.pdf \nconfig.js" >> .gitignore'

$ git init & ignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment