Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Ignoring Files in Git

DZone's Guide to

Ignoring Files in Git

· Java Zone
Free Resource

Microservices! They are everywhere, or at least, the term is. When should you use a microservice architecture? What factors should be considered when making that decision? Do the benefits outweigh the costs? Why is everyone so excited about them, anyway?  Brought to you in partnership with IBM.

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

.DS_Store
*.swp
*.iml
*.ipr
*.iws
.classpath
.gitignore
.project
.settings/
.springBeans/
target/
.classpath

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

[user]
name = Your Name
email = you@yourdomain.com
[color]
ui = auto
[core]
editor = mate
excludesfile = /Users/youruser/.gitignore

Further Reading – for more config options

 

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

Discover how the Watson team is further developing SDKs in Java, Node.js, Python, iOS, and Android to access these services and make programming easy. Brought to you in partnership with IBM.

Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

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

{{ parent.tldr }}

{{ parent.urlSource.name }}