VOOZH about

URL: https://www.javacodegeeks.com/2019/12/global-gitignore.html

⇱ Global gitignore - Java Code Geeks


A widely used Git feature is to use local .gitignore files which list which names and patterns of files and directories will be ignored within the Git repository.

There is also the possibility to create a system-wide gitignore file which lists patterns that should always be ignored, in all of the user’s Git repositories.

You can point to the file in your Git config via git config --global core.excludesfile ~/.gitignore_global.

The following ~/.gitignore_global file will cause .java-version files to always be ignored within your Git setup:

1
2
# jenv
.java-version

Also have a look at the GitHub documentation.

Published on Java Code Geeks with permission by Sebastian Daschner, partner at our JCG program. See the original article here: Global gitignore

Opinions expressed by Java Code Geeks contributors are their own.

Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. JPA Mini Book
2. JVM Troubleshooting Guide
3. JUnit Tutorial for Unit Testing
4. Java Annotations Tutorial
5. Java Interview Questions
6. Spring Interview Questions
7. Android UI Design
and many more ....
I agree to the Terms and Privacy Policy

Thank you!

We will contact you soon.

Tags
Git
πŸ‘ Photo of Sebastian Daschner
Sebastian Daschner
December 15th, 2019Last Updated: December 10th, 2019
0 152 1 minute read

Sebastian Daschner

Sebastian Daschner is a self-employed Java consultant and trainer. He is the author of the book 'Architecting Modern Java EE Applications'. Sebastian is a Java Champion, Oracle Developer Champion and JavaOne Rockstar.
Subscribe

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Back to top button
Close
wpDiscuz