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
Hi,

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",
                GLOBAL_GIT_IGNORE_PATH);


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!

Thanks!
Srini
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: 576
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: Wed Sep 25 15:23:31 GMT 2024

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

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

Back to the top