Over a million developers have joined DZone.

Ignoring Files in Git

DZone's Guide to

Ignoring Files in Git

· Java Zone ·
Free Resource

Java-based (JDBC) data connectivity to SaaS, NoSQL, and Big Data. Download Now.

Quick tip on setting up files to be ignored for your system.

1. Execute the command setting the location of your system level ignore file

git config --global core.excludesfile ~/.gitignore

2. Edit the Global Git Ignore File: ~/.gitignore


3. Peek into your Global Git configuration ~/.gitconfig

name = Your Name
email = you@yourdomain.com
ui = auto
editor = mate
excludesfile = /Users/youruser/.gitignore

Further Reading – for more config options


From http://gordondickens.com/wordpress/2010/12/06/ignoring-files-in-git/

Connect any Java based application to your SaaS data.  Over 100+ Java-based data source connectors.


Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}