git ignore files (especially global)

one can create gitignore files for specific repos and also globally.
github offers gitignore templates for lots of different things: frameworks, languages, editors, operating systems, etc. (link: github-ignore-templates).

the templates should be copied to some file (~/.gitignore_global) and applied with this command:
git config --global core.excludesfile ~/.gitignore_global

examples:

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s