Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Having both global and local .gitignore
Having both global and local .gitignore [message #1829238] Mon, 29 June 2020 13:09 Go to next message
Srinivasa B S is currently offline Srinivasa B SFriend
Messages: 1
Registered: June 2020
Junior Member

I am using JGit to fetch git status and I have both a global and a folder level .gitignore file.

I can configure exclude file using either one using:

git.getRepository().getConfig().setString("core", null, "excludesFile",

How can I make sure both the global and local .gitignore files are considered for filtering files?

Any pointers in this regard is much welcome!

Re: Having both global and local .gitignore [message #1829247 is a reply to message #1829238] Mon, 29 June 2020 15:01 Go to previous message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 512
Registered: August 2016
Senior Member
You don't have to do anything. .gitignore files inside the git working tree are always taken into account.
Previous Topic:Usage of ssh-agent
Next Topic:How to pass the Git tag value to a Maven build run by Eclipse to embed into the WAR file manifest?
Goto Forum:

Current Time: Thu Dec 08 21:02:08 GMT 2022

Powered by FUDForum. Page generated in 0.02941 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top